Hi Pablo,
Thank you for reaching out!
Can you please state which version of Wisej.NET you’re using?
Best,
Alaa
//
Luca, please amend the example Real Time Clock – Wisej.com to showcase Realtime drawing collaboration (whiteboarding) between browser instances.
This will assist with understanding of websocket/statics/crossthread invoke and what Application.Update(this) does.
Realtime Clock example changes required:
The multiuser draw cross browser functionality is missing due to the draw variable being a local rather than static (global) across browsers,
Add:
private static List<Point> draw = new List<Point>();
Remove this. prefix from all this.draw so they are to be just draw.xxx
for example:
private void label1_TouchEnd(object sender, TouchEventArgs e)
{
this.drawing = false;
draw.Add(Point.Empty);
}
Hi Alaa,
i have read this very carefully “guide to deploy ASP.NET Core apps on IIS.” but maybe there is on my side a misunderstanding.
where is the switch for “set up the App Pool to native.” ?
Regards
Manfred
Hi Manfred,
Looks like you didn’t set up the App Pool to native.
Please follow our guide to deploy ASP.NET Core apps on IIS.
Regards,
Alaa
Hi Alaa,
yes i have installed this Bundle.
Regards
Manfred
Hi Jay,
You’ll probably want to use the CellStyle.BackgroundImageAlign property.
Try this line:
e.CellStyle.BackgroundImageAlign = ContentAlignment.MiddleCenter;
It should work fine!
HTH,
Alaa
//
Thanks Vincenzo
Now I do some tests
Mario
Hi Vincent,
this is fixed in our latest release (3.1.6)
Best regards
Frank
The correct usage is:
this.imageList1.Images.Add(new ImageListEntry
{
Name = "myImage"
ImageSource = "myImage"
});
With Wisej.NET the ImageSource property is alternative to Image. Image is a System.Drawing.Image while ImageSource is a string. It takes a URL, a name of a themed image, a relative file path. See https://docs.wisej.com/docs/controls/general/icons#image-files.
You can put the code in your application. Write it or use the designer.
which place I put this statement? inside my class?
this.imageList1.Images.Add(new ImageListEntry
{
Name = "myImage"
ImageSource = Application.Theme.Images["myImage"]
});
Hi Sidney,
Attached a template for the JSON file.
If you want to register an EJ1 license, please follow the guide on Syncfusion’s Website.
HTH,
Alaa
//
Hi Julie!!
Thanks for your answer!
To illustrate, I attached to the example you sent me, a library, that I created, and referenced in the Wisej project. The Wisej project runtime takes place in the net4.8 environment and I don’t know how to get around it. See in the attached example that the application does not recognize the net6.0 runtime.
I know I’m doing something wrong but I don’t know what it is, since in the example the EntityFramework 6.0 packages were attached to the 6.0 runtime and it worked, but with my library it doesn’t work.
Thanks!
Yes, it’s possible and a normal thing to do in Visual Studio to have multi targeting.
There are 3 common approached to multi targeting whether it is for .NET versions or OS targets:
1. Conditional compilation #if NETCOREAPP etc. You’ll find examples in most of Microsoft code on GitHub. You might also find the Microsoft Documentation on conditional compilation helpful.
2. Separating folders using conditional <ItemGroup> in the sdk format project
3. Separating files using conditional <ItemGroup> in the sdk format project
3a. Separating partial class files (most Microsoft projects use this approach with Socket.cs Socket.Windows.cs and Socket.Unix.cs for example, see Github)
See attached sample using EF Core.
We need net48 for the designer until Wisej.NET 4 where we will be able to have two separate designers, one for net48 and one for net core.
I tried the same sample provided and it works without any issue. You cannot expect to use an Image as a string that is the name of an image file. Also base64 is not the name of an image. If you want to use a bitmap you need to assign it to a property of type Image not string. Try BackgroundImage.
So… i tried this, but the compiler says to me: you can convert the bitmap to string. This appears that the cellStyle dont receive the image tipe, how i can do, i tried convert in base64 to .. but nothing happens.
method cellformating{
Icon iconMsgFechada = new Icon(serviceMsg.EntregaDiretorio(1) + “MsgFechada.ico”);
Icon iconMsgAberta = new Icon(serviceMsg.EntregaDiretorio(1) + “MsgAberta.ico”);
if (e.ColumnIndex == 1)
{
if (e.Value.Equals(0))
{
e.CellStyle.BackgroundImageSource = iconMsgFechada.ToBitmap();
}
else
{
e.CellStyle.BackgroundImageSource = iconMsgAberta.ToBitmap();
}
}
}
Hi Jay,
It’s better to use the CellFormatting Event to apply your logic.
I have attached a sample for you!
I would also like to point out that it’s highly recommended that you don’t use the Bitmap() object but instead use the “ImageSource” property and deploy your /Images resources, This way there is no memory usage on the server to load the image and it’s also cached on the browser.
You can check out our DemoBrowser application for more details about this, and I would like to also point you out to another similar post in this forum for more info!
Merry Christmas,
Alaa
That’s it! The iis users had read only permissions on the temp folder.
Thx and merry christmas
Stephan
Hi Stephan
Testing in a IIS into web machine from our side, all works fine
We suggest you that check for permission in directory /temp on your IIS machine.
Regards
Unfortunately it’s a regression related to sorting a DataGridView data bound to a source that doesn’t support sorting. It’s fixed in the current internal build and will be available shortly If you use dgv.Fill(dataSource) you can see the correct sorting.
