All Answers

0 votes

Hi Jose,

Thank you for your interest in Wisej.NET!

Unfortunately, WinForm controls are not compatible with Wisej.NET itself, since all of our components are javascript web controls.

You can get around that by using the ASP.NET Core or ASP.NET MVC components, if you went the ASP.NET MVC route, you’ll need to use our ASP.NET Wrapper extension to implement it with Wisej.NET!

We do offer custom implementation services, if that interests you, please contact us at sales[AT]iceteagroup.com for more info.

Best,
Alaa

0 votes

Hi Devin,

I’m putting your answer above to close this issue 🙂

<PropertyGroup>
<ActiveDebugFramework>net6.0</ActiveDebugFramework>
</PropertyGroup>

Best,
Alaa

0 votes

Hello,

we’re using Visual Studio 2022 version 17.7.1 along with Wisej 2.5.35.

For the designer, we’re using the NuGet package provided by Wisej-2-VisualStudioDesigner 2.5.20.
Will this NuGet package also be updated?

We’re encountering the issue described in this post related to the Edge/Chrome renderer.

Thanks in advance.

0 votes

I’ll answer my own question here,

It appears you cannot, however for a workaround and it’s a bit tedious

I have opened the .csproj file and commented out the 4.8 target <ItemGroup> sections for my forms I want to edit, and unload and reload the project.  Then I can edit the forms in the designer.  However of course it will not compile now, so before I can run in the debugger I have to remove my comments for the 4.8 Item Group so it will compile again.

I am really looking forward for the .net core designer 🙂 cause this is a pain.

0 votes

To anyone who’s still having designer issues, I have updated the original post with new VSIX links.

Please give them a try and let us know if anything is not working as expected!

Best,
Alaa

0 votes

Hello,

we’re using Visual Studio 2022 17.7.1.

We have deinstalled the old extension (Designer 3.2.4) and installed the new one. No changes at all after complete system reboot, same results for IE or Edge Renderer.

Some simple forms (no subclasses) are displayed correctly with IE Renderer.

Screenshots attached.

Thank you

 

 

 

0 votes

You can use Application.ActiveProfile https://docs.wisej.com/api/wisej.web/general/application#activeprofile

For example, this code snippet would set the text of a button to be the name of the active profile when the button is clicked.

private void button1_Click(object sender, System.EventArgs e)
{
button1.Text = Application.ActiveProfile.Name;
}

Application.ActiveProfile is a ClientProfile object, so you might find the ClientProfile documentation helpful as well:
https://docs.wisej.com/api/wisej.web/general/application/wisej.core.clientprofile

-Julie

0 votes

Hello,

You can’t do that out of the box. There’s not a property or method for it in the PDFViewer documentation

The pdf viewers use the URL as the file name- they don’t care about the filename field in the header response.

Check out this forum post for a workaround- you can override the IWisejHandler interface in a subclass of PdfViewer.

-Julie

1 vote

Please note that this preview build of the VSIX is only available through the links that Alaa posted
and not in the Visual Studio Marketplace.

Thus you need to deinstall your exiting Wisej.NET version in Visual Studio
(Extensions – Manage Extensions – Select Wisej.NET from the Installed Extensions – Uninstall)

Then install the downloaded version.

When Wisej.NET 3.2.5. is officially released, it will be back into the Visual Studio Marketplace and you can directly update it in Visual Studio.

Sorry for any inconvenience.

Best regards
Frank

  • Frank (ITG) answered Aug 11, 2023 - 12:04 am
  • last active Aug 11, 2023 - 12:04 am
1 vote

This has been answered in the original forum post.
Please don´t post multiple threads on the same topic, thanks.

Best regards
Frank

0 votes

Hi Christian,

The issue was due to a version mismatch of the WebView2 native library that was updated by Wisej, and the one we ship with the Designer.

We fixed it and we are still testing it internally!

An update to the extension will be shipped as soon as possible.

Best,
Alaa

0 votes

Wisej refers to the fullcalendar implementation. Whatever their license requirements are you have to follow up with them. There are also many other scheduler implementations that we provide using DevExpress, Syncfusion, Telerik components. All requiring a license.  Note: We are not related to VWG in any way.

  • Luca answered Aug 10, 2023 - 5:02 pm
0 votes

Please use the IE renderer instead of Edge as a workaround while we investigate the issue.

You might find this forum thread helpful: wisej.com/support/question/wisej-form-freeze-after-update-visual-sudio-2022-v-17-6-2

-Julie

0 votes

Ciao Tiziano, here is the explanation.

What you see with the base64 image is the local javascript image cache implemented in Wisej client side components. There is also a bit more complexity to this related to using images in cells because cells in a datagrid  are not components, they don’t exists as javascript components since they are rendered on demand when scrolling. So:

  • Using DataGridViewImageCell.Value property sets the image using the css background-image:src() the same way using the Style.BackgroundImage uses the same css background-image:src(). Since the src attributes downloads the image directly from the server, when you use the URL (i.e. “resource.wx/Wisej.Ext.MaterialDesign/android-logo.svg”) the svg is returned unaltered and cached by the browser using the cache  settings returned by Wisej. If you look in the network tab you will see “(memory cache)” on a refresh (unless you disabled the cache in the tab).
  • However, related the the point above, when adding the color property to the URL the svg image has to be first loaded from the server, then loaded as an xml document, then all the svg elements have to be traversed to replace the fill attribute but only if monochrome. This is all done in javascript and cached on the client using the URL with the color hashed as the key. That’s why you get the base64 in this case. It makes it a lot faster, as fast as the browser cached plain URL.

But:

  • If you are instead setting the ImageSource property of say a Button you will always see the base64 because monochrome svg Images are always altered. Even if you don’t specify the color argument, Wisej uses the text color property of the widget to adapt the image. Therefore they are always downloaded and cached in the client after having been recolored.

Additionally, looking at the sample:

  • No need to add cells to the row. Cells are created automatically.
  • For DataGridViewImageColumn (and DataGridViewImageCell) no need to also create a DataGridViewStyle object, just set the Value.

Your sample could be

dataGridView1.Rows.Add(row1);
dataGridView1.Rows.Add(row2);
dataGridView1[0, 0].Value = “resource.wx/Wisej.Ext.MaterialDesign/android-logo.svg?color=#fca326”;
dataGridView1[0, 1].Value = “resource.wx/Wisej.Ext.MaterialDesign/android-logo.svg”;

Or

dataGridView1.SetValue(0, 0, “resource.wx/Wisej.Ext.MaterialDesign/android-logo.svg?color=#fca326”);
dataGridView1.SetValue(0, 1, “resource.wx/Wisej.Ext.MaterialDesign/android-logo.svg”);

Using SetValue() prevents the forced creation of a row when the grid is data bound.

HTH

 

 

 

 

 

  • Luca answered Aug 10, 2023 - 2:53 pm
0 votes

First of all, thank you for your help.
I attach the project, and I think I understand one more detail.
In the project I load a DataGridView with two rows. The first column will contain the images whose render of our discussion.

The first row has an image with the color changed ( directive ?color=#…).
“resource.wx/DG.Ext.Font/lock.svg?color=#fca326”

The second row has a natural unmanipulated svg image (black)
“resource.wx/DG.Ext.Font/fax.svg”

It appears that color modification excludes from simple cashing.

In fact, by pressing F12 and hovering over the respective images, the first one is inline with many fonts, the second one has been downloaded to the browser’s source folder.
In fact, going to “Sources” and expanding the folders in the subfolder of “localhost:5000” > “resource.wx > DG.Ext.Font” we find the image of the second row of the table “fax.svg” (see the attachment Screenshot.png)

I wanted to ask you if you think the problem doesn’t exist, so should I ignore the inline of the first immegine because the browser will take care of it or should I pose the problem in pages where colored .svg’s are used to save having to load them in the resource file.

Bests Regards

Tiziano

0 votes

Hi Andrew,

We have identified an issue similar to this one and fixed it.

The fix will be released with the new 3.2.4 release of Wisej.NET.

Best,
Alaa

0 votes

Thanks!

0 votes

We don’t produce any HTML. The html you see is Chrome’s representation of the DOM. Base64 sources are used routinely by our local image caching system and improve performance by a lot. Wisej doesn’t assemble or concatenate HTML, it uses dom elements directly (through a shadow fast dom system). When you inspect the HTML chrome rebuilds the HTML representation. Otherwise our HTML is simply the empty Default.html page.

Can you attach a small runnable sample project so we can give you a better explanation on why the URL is used in one case and why the base64 is embedded in another?

  • Luca answered Aug 8, 2023 - 2:47 pm
  • last active Aug 8, 2023 - 2:47 pm
0 votes

Hi Jun,

All Widgets / Containers have the “ShowLoader” property, you can control the “Spinner” that way.

There are a lot of samples in the forum, as a starting point please visit https://wisej.com/support/question/asyncawait-best-practices-in-wisej for more info!

Best,
Alaa

0 votes

Hi Alaa,

There is no requirement, I can just use

Application.Session.MyVar = “value”;

But I saw this example in your migration documentation like this:

// Session is a dynamic object
Application.Session.MyVar1 = 1;
Application.Session.MyVar2 = “Test”;
// Statics moved to session
MyClass.Static1 = “Hello”;
// Becomes
Statics.MyClass.Static1 = “Hello”;
// It’s an easy search/replace.
Statics {
MyClass { get {
return Application.Session.MyClass; }}}

Wrapping your Session variables in a static class is just a little easier as the Variables are type casted and you don’t have to remember what they were you cant just type “Statics.” in VS and all your Session variables show up.

But since it’s a static class I was wondering about thread safety, maybe bad idea.

Thanks,

Devin

 

 

 

 

Showing 1041 - 1060 of 11k results