All Answers

0 votes

Hi David,

enhancement #3025 was added with Wisej.NET 3.1.1

Best regards
Frank

0 votes
In reply to: License Info

Hi Davide,

with Wisej.NET 3.1.3 license information is available in

Application.License

Best regards
Frank

0 votes

Hi Jesus,

this issue is fixed in Wisej.NET 3.1.3

Best regards
Frank

0 votes

Hi Neil, Hi Jesus,

this issue is fixed in Wisej.NET 3.1.3

Best regards
Frank

0 votes

Hi Neil,

this issue is fixed in Wisej.NET 3.1.3. Please update from nuget and it should now work as expected.

Best regards
Frank

0 votes

Hi Stephan,

to add to Alaa´s answer:
You can do this either by modifying an existing theme, creating a custom theme or by creating a theme mixin.

Read more: https://docs.wisej.com/theme-builder/

As an alternative option you can also read/write theme properties by code.
For example if you want to get rid of the alternating row colors in a DataGridView you can use code like this:

 Application.Theme.Colors["table-row-background-odd"] = Application.Theme.Colors["table-row-background-even"];

Best regards
Frank

0 votes

Hi Stephan,

You can set the Odd and Even background colors in the ThemeBuilder.

Go to Table Cell -> Odd or Table Cell -> Even and change the color from there!

HTH,
Alaa

0 votes

Hi Neil,

Thank you for reporting the issue, it’s a confirmed bug and we will let you know as soon as a fix is released!

Best,
Alaa

0 votes

Regarding your question, I am attaching the operating procedure and the comparison screen between the test program source and VS2022.

The attached sample program source is created during debugging by starting it up with debugging.
In the list of scripts in the Script Docments, the following line should appear
Widget.startup.jp” in the list of scripts in Script Docments.
InitScript scripts are created dynamically, so the “msg = ‘Hello Message!!!'” on line 40 should be a breakpoint in the running WebWidget.
and press the “Message” button from the running web program, the script is created dynamically in the Widget control with the script name “hello message!
In VS2022 version 17.2.6, the script pauses at the breakpoint.
VS2022 version 17.4.0 does not pause at breakpoints.

 

  • Takao Watanabe answered Nov 16, 2022 - 6:26 am
  • last active Nov 16, 2022 - 6:30 am
0 votes

Hi Takao,

Can you please wrap up a small sample application for this issue?

Also, it would be much helpful if you provide a full description of what was working before and isn’t now, with the addition of the steps to reproduce!

TIA,
Alaa

0 votes

Hi Alaa.

The answer was that the PrintPreview extension does not support paper larger than A3 size, but the browser you are using could be the problem.
Analyzing the program source of the PrintPreview extension, we found that it uses “Microsoft Print To PDF” to convert the PDF file as intermediate data for the print preview, but this may be the cause of the problem.
Microsoft Print To PDF only allows a maximum paper size of A3.

0 votes

Hi Nicholas,

Any version of Wisej that’s prior to version 3.0 (That means Wisej.NET 2.5 and below) has the ThemeBuilder bundled when you use the installer.

Can you provide more details as to why you would need an older build?

TIA,
Alaa

0 votes

Hi Huỳnh,

Like Gerhard mentioned, it’s best to use the System.Net namespace instead of System.Web which is available only in .NET Framework 4.8.

For the “SqlDataSourceEnumerator.Instance.GetDataSources” error, it’s implementation is only available in .NET Framework 4.8, Microsoft still didn’t implement it in its System.Data.SqlClient for .NET Core.

There’s an alternative however, you can use https://github.com/mrsquish/SqlBrowserClient.
You can keep yourself updated about its implementation by looking at https://github.com/dotnet/SqlClient/issues/17 .

This is not a Wisej issue.

Best,
Alaa

0 votes

Hi Alaa,

I’m still doing something wrong. I added this to the config file “localization.js”: “Syncfusion2/localization-%culture%.js”
Is that a file/path I have to provide myself?

executing ej2Base.Culture = new CultureInfo(“de-DE”); still throws an exception (see screenshot)

0 votes

Hi Huỳnh,

Unfortunately, you can’t use regular ASP.NET Controls with .NET6.

When you run your application with .NET 6, you’re running it as an ASP.NET Core application, and regular ASP.NET Controls don’t work in that environment.

You’ll have to change the Target Framework to .NET Framework 4.8 (net48) for it to work correctly!

Best,
Alaa

0 votes

Hi Sascha,

The solution you found in the demo basically loads all the relevant JSON files that correspond to the de-DE Culture.

Check https://github.com/iceteagroup/wisej-demobrowser/blob/main/Wisej.DemoBrowser.Premium/Wisej.Web.Ext.Syncfusion2.Demo/Syncfusion2/cldr-data/de-DE/localeText.json as an example of it!

But in order to load it, you’ll have to add the localization package to your Wisej.Ext.Syncfusion2.json configuration file like the one here: https://github.com/iceteagroup/wisej-demobrowser/blob/main/Wisej.DemoBrowser.Premium/Wisej.Web.Ext.Syncfusion2.Demo/Wisej.Web.Ext.Syncfusion2.json

You can simply pull the files from the demo repository and add them to your project, just make sure that you specify the Culture by using ej2base.Culture = ej2Base.Culture = new CultureInfo(“de-DE”);

HTH,
Alaa

0 votes

Best would be to have a code review by Wisej guys.

Out-of-memory situations are not strictly Wisej problem, but they can point you to memory leaks and help improving session handling.

 

What you can do yourself:

  1. Make sure you are using 64 bits, not 32 bits.
  2. The Visual Studio 2022 has nice Diagnostic Tools to list up all memory objects by count and size.

During debugging, you can: (1) take a memory snapshot, (2) open a window, (3) do some operations, (4) close the window, (5) take another memory snapshot.

The Diagnostic Tools will show you all object created between the snapshots.

 

3. If really critical (like you are losing reputation and need a quick fix), you can (temporarily) force-run a garbage collection, until you resolve the issue.

Do not run GC as a permanent fix.

 

This should be called after a client disposes a window.

This will freeze all clients for ~1 second.

 

System.Runtime.GCSettings.LargeObjectHeapCompactionMode = Runtime.GCLargeObjectHeapCompactionMode.CompactOnce
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, True, True)
System.Threading.Thread.Sleep(100)
GC.WaitForPendingFinalizers()
System.Threading.Thread.Sleep(100)
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, True, True) ‘ collect dead objects
System.Threading.Thread.Sleep(100)

 

4. In your web.config, set something like

<configuration>
<runtime>
<gcServer enabled=”true” />
<gcConcurrent enabled=”true” />
<gcAllowVeryLargeObjects enabled=”true” />
<GCLOHThreshold enabled=”4194304″ />
</runtime>
</configuration>

5. Even you have 32 GB RAM, increase your paging file to be fixed-size 16 GB.

 

But better ask Wisej team for special support.

 

 

0 votes

Here’s a sample. Hope it gives you a general idea on how to make clever use of the Movable property.

Replace the sample image with one of your own to test it with different sizes.

(You can move and resize the red box)

  • vincent_ answered Nov 10, 2022 - 9:10 am
  • last active Nov 10, 2022 - 9:12 am
0 votes

This would be something I’d like too.

I’ve created an application which uses instrumentation diagrams and these images are over 5000 by 3500 pixels give or take. The panning is easy to implement in WiseJ by clever using the “Moveable” property. My application has over 400 objects which are drawn over the big image and these objects can be selected, moved and resized. The Movable property (as far as I know) is handled on the client which makes it super fast. I could be wrong but though.

Anyway, if you’d like to try this:

  1. Place a Panel on a page with Dock =Fill and AutoScroll = True
  2. Place a picturebox inside the panel with SizeMode = AutoSize and Anchor = None and select a large image and Location = 0;0 and Moveable = True
  3. Select a large picture to show in the picturebox

 

Now run the application and try dragging the image arround.

To get the cursor position in relation to the image you can use the MousePosition and the scrollbar offsets of the Panel.

I’ve not been able to implement zooming because of memory issues so if WiseJ could implement pan/zoom that would be so cool!

Attached a screenshot of the application with picturebox panning. The red squares are selectable object, the numbers are movable in realtime.

  • vincent_ answered Nov 10, 2022 - 8:35 am
0 votes

Hi Neil

I’m afraid that’s not an option with the LinkLabel.

However, you can use plain CSS in your HTML, or you can use a CSS Class.

Take a look at the modified sample I just attached, I have used the Stylesheet component to write a CSS class that I used later inside the Label.

HTH,
Alaa

  • Alaa (ITG) answered Nov 9, 2022 - 5:41 pm
  • last active Nov 9, 2022 - 5:43 pm
Showing 1861 - 1880 of 11k results