All Answers

0 votes
In reply to: ListBox EnsureVisible

Thanks, Alaa. It works.

Alex

0 votes

Hi Tiziano,,

There’s many many ways of dealing with Pagination, or caching in this case.
Wisej.NET’s DataGridView is already in full virtual scroll mode,

You can go with the legacy route, and that is basically specifying what page to look for.
Or, you can go with the “Caching approach”.

The client-side can manage its own cache and paging whereas the server side can implement any caching system.

I have attached a sample to showcase this behavior!

For more info, you can check out Microsoft’s documentation about implementing VirtualMode from here: Microsoft | Implementing Virtual Mode in the Windows Forms DataGridView Control

In Wisej.NET, to virtualize the server side you’ll need to use VirtualMode and CellValueNeeded and DataRead event to manage the paginated cache.
You can check out our documentation for that here: Wisej.NET Documentation | DataGridView.DataRead

HTH,
Alaa

0 votes
In reply to: ListBox EnsureVisible

Hi Alex,

The suitable replacement for the EnsureVisible method for a ListBox is the ListBox.TopIndex parameter.

The basic APIin Wisej is modeled after WinForms and there is no EnsureVisible() in Winforms, it’s done this way to make it compatible with Pre-existing WinForms code for migration purposes!

So depending on how many items you have in a ListBox, you’ll just have to assign the TopIndex parameter to the index you’ll want to scroll into!

HTH,
Alaa

0 votes
In reply to: WiseJ Start Task Async

Hi Ruben,

Background tasks are completely separated from the session and the user that started them. They are simply threads running on their own without any knowledge of the session that started them.
This is why you’ll need to update the application to reflect any changes or updates done in a background task.

For this, Wisej has the “Application.Update()” method.
However, in order for it to work correctly, you’ll have to add the method INSIDE the Application.StartTask() method.

Otherwise, when the task is finished doing its thing, it won’t get reflected back to the client.

You can find out more info in our documentation : Wisej Documentation | Updating UI Using Background Tasks

HTH,
Alaa

0 votes

Hi Marcelo,

Thank you for reporting this issue.
A fix will be included in the next release!

I’ll update you when it ships.

Best,

Alaa

0 votes

Hi Ruben,

please take a look at this older discussion:

https://wisej.com/support/question/get-the-open-forms

Once you get the form you can call whatever is public there. (call a method to set the value or directly set a property/control value).

Best regards
Frank

0 votes

Hi Sascha,

There are two separate issues here:
1. The CDN url
– You can’t use Wisej.Web.Ext.Syncfusion2.json in a class library. You must add it to the main project directly. We have the usage in a class library logged as an enhancement but either way it still needs to be set as an embedded resource within that project.

Since it wasn’t loading the version from your class library, it loaded the default version from CDN that’s packed with the extension.

2. The license issue
– If the EJ2 distribution requires a license key you can apply it like mentioned in another post using Application.Eval after a Syncfusion widget is shown for the first time.
– Alternatively, you can add a JavaScript file reference in the Wisej.Web.Ext.Syncfusion2.json that loads the Syncfusion license there. The packages are loaded synchronously so whatever order you keep the packages in there will be the order they load in.

We’ve logged an enhancement to apply the license key using ej2Base.License = “some key”. This enhancement will be available in the next release.

HTH,
Levie

  • Levie (ITG) answered Sep 15, 2022 - 5:30 pm
  • last active Sep 15, 2022 - 5:30 pm
0 votes

Hello Frank,

 

Here you go. I attached the two projects in a zip file. The code changed since the last upload, since I’m actively testing things.

 

Greetings

0 votes

Hello Alaa,

All I can say is that I did what I explained in my question and have that prompt. I simply installed your Nuget packages in a new project and have the prompt. I uploaded a Screenshot which should have all necessary info. You can also see that the chart works without me installing anything, but the Application.Eval throws a JS error that ej is not defined.

Afterwards I installed Syncfusion Essential Studio 20.2.0.36. I need the JS package, right? It changes nothing for now. Why do I need to install and implement anything just to register the license? And how exactly do I do that in a WiseJ project now?

Greetings

 

edit: also I added the rest of my test code; I’m aware the register License is at the wrong spot, but the ej JS namespace is not existent anyway.

  • Rene Kolodziej answered Sep 15, 2022 - 8:41 am
  • last active Sep 15, 2022 - 8:47 am
0 votes

It is not working, because my wiseJ Toolbar is not apper the deactivate, when i open a wiseJ project in my machine. I have other option?

0 votes

Hi Jadson,

if you open the Visual Studio click on the License Information tool in the bottom right of the Wisej Toolbar.
It shows an option “Deactivate License”. After this you can re-register with your new license.

Best regards
Frank

0 votes

Hi Sascha,

To add to my previous answer, there is no commercial validation with the default version included in our Widget (it’s from CDN), but now Syncfusion requires this so you must use the registerLicense method in JavaScript.

You can add this peace of code below into your application’s main entry point,
Application.Eval("ej.base.registerLicense('someLicenseKey')")

This should also do the trick!

Also, as stated here: Introducing License Key Validation For The Essential Js 2 Platforms, you would only need to use ej.base.registerLicense with Essential Studio 2022 Volume 1 or greater.

Our extension uses an old CDN package, so in theory, you shouldn’t have that prompt!

HTH,
Alaa

  • Alaa (ITG) answered Sep 14, 2022 - 2:32 pm
  • last active Sep 14, 2022 - 2:49 pm
0 votes

Hi Sascha,

You’re probably missing the Syncfusion assemblies, the “Syncfusion” namespace is part of those!
Make sure that you have Syncfusion installed on your machine, and then you can use any of the methods described in their documentation: Syncfusion |How To Register In An Application

This is how you’ll be able to register your license!

HTH,
Alaa

0 votes
In reply to: Hide Scrollbar

Hi Ruben,

You can set the ScrollBarVisible property to false if you’re attempting to use this for the DataRepeater Control!
If it’s for any other control, you can set the ScrollBars property to Hidden, these will make the scrollbars disappear while retaining the ability to scroll using the mouse wheel

Wisej Documentation | ScrollBars

Wisej API Documentation | ScrollBars

HTH,
Alaa

  • Alaa (ITG) answered Sep 14, 2022 - 1:11 pm
  • last active Sep 14, 2022 - 1:27 pm
0 votes

Hi Ruben,

You can adjust the Padding of your ItemTemplate, having about 7px on all sides should do the trick!

HTH,
Alaa

  • Alaa (ITG) answered Sep 13, 2022 - 9:54 pm
  • last active Sep 13, 2022 - 9:54 pm
1 vote

Ruben,

what you describe as stuck is a normal window behavior, it keeps its position.
If you want to have the “responsive” thing, just set KeepCentered to true before showing the dialog:

https://docs.wisej.com/api/wisej.web/containers/form#keepcentered

Best regards
Frank

0 votes
In reply to: Panel scroll position

That’s what I’m trying. Scrollbars=none and I can get the mouse wheel events. And I can zoom my picture (and that’s working either). What I can’t do is that: I have the panel and some controls that are (partially) outside the boundary. I want programmatically to “move the scrollbars” of the panel. In Winforms I’m getting this by setting  Panel1.AutoScrollPosition. Here it’s not working.

0 votes
In reply to: Panel scroll position

Hi
Sadly you can´t control the scrolling from the server
Mouse wheel is already supported

Maybe as workaround you can set scrollbar=Hidden and
use the mouse wheel to scrollbar the panel

Regards

  • Paul answered Sep 12, 2022 - 3:20 pm
0 votes
In reply to: Rotate image

Hi Adrian,

I send you in attachment the way to proceed.

Best,

Kevin(ITG)

  • Kevin answered Sep 12, 2022 - 11:20 am
0 votes
In reply to: Rotate image

Hi Adrian,

If you want to use Wisej for rotation, we have an extender https://docs.wisej.com/docs/controls/extenders/rotation for that:

– For Rotation : this.rotation1.GetRotation(this.pictureBox1).RotateZ += 20;

-For Scale (Zoom) : this.rotation1.GetRotation(this.pictureBox1).ScaleX += 20;this.rotation1.GetRotation(this.pictureBox1).ScaleY += 20; this.rotation1.GetRotation(this.pictureBox1).ScaleZ += 20;

If you want to apply effect directly on Bitmap, Check this link for more details https://docs.microsoft.com/en-us/dotnet/api/system.drawing.image.rotateflip?view=dotnet-plat-ext-6.0

Happy Coding,

Kevin(ITG)

  • Kevin answered Sep 11, 2022 - 7:41 pm
  • last active Sep 11, 2022 - 7:43 pm
Showing 1961 - 1980 of 11k results