All Answers

0 votes
In reply to: RadioButton GroupName

Hi Kizaemon,

The RadioButton control can be controlled in any way an application needs to.

You can set the AutoCheck property to false and then handle the CheckStateChanged event.

You can checkout our API Documentation for more info!

Also, you can combine my answer from an older post of yours for better results!

HTH,
Alaa

1 vote

It’s not bizarre. Static means it’s shared across all threads. The timer is created once (since you created it as a static component). Which means browser1 fires the timer. Then you attached multiple handlers to the same timer instance (because it’s static) therefore the handlers are invoked by the thread that fired the event, which means they execute for other sessions out of context. This is not something related to Wisej.NET. It’s simply the way static instances of anything work.

  • Use Application.Update(this) to push the update to the other browsers; when the first browser is closed the timer will obviously stop; or
  • Don’t use statics; or
  • Use a thread timer instead: https://learn.microsoft.com/en-us/dotnet/api/system.timers.timer?view=net-7.0 (same issue with threads and push updates)

Polling is alternative to websocket.

I tried your sample is all works as expected.

  • Luca answered Dec 16, 2022 - 1:51 pm
0 votes

Attach to the https://docs.wisej.com/api/wisej.web/general/application#threadexception event.

  • Luca answered Dec 16, 2022 - 1:45 pm
0 votes

Just load webcard.js in the browser and call its methods.

  • Luca answered Dec 16, 2022 - 1:44 pm
0 votes

This is a simple configuration of Serilog in code (Program.cs):

var logFile = (string) Application.Configuration.Settings.logFile;

Log.Logger = new LoggerConfiguration()
.WriteTo.File(
logFile,
rollingInterval: RollingInterval.Day,
retainedFileCountLimit: 7,
shared: true,
encoding: Encoding.Default, // SBCSCodePageEncoding
outputTemplate: “{Timestamp:yyyy-MM-dd HH:mm:ss.fff} [{Level:u3}]  {Message:lj}{NewLine}{Exception}”
)
.CreateLogger();

Or place the configuration in Web.config and read it from there.

Then log wherever you want:

Log.Information(“Something happend.”);

Log.Error(“Something bad happend.”);

 

See also https://github.com/serilog/serilog/wiki

Cheers, Gerhard

 

 

 

 

 

0 votes
In reply to: TagTextBox bugs

Hi Vincent,

Sorry for the late reply!
We’re currently investigating the issue and we’ll update you when a fix is released!

Best,

Alaa

0 votes

No

  • Luca answered Dec 13, 2022 - 11:33 am
0 votes
In reply to: Moveable Property bug

Thanks for the quick reply! I will try the focusable property. I was (am) confused why it worked up to version 3.1.2

  • vincent_ answered Dec 12, 2022 - 2:21 pm
0 votes
In reply to: Moveable Property bug

It’s not a Wisej bug. The movable property allows the client to move a widget within its container. The issue you see is the browser scrolling one of the 150 controls that you add a children of the PictureBox when they get focused. Add TestControl.Focusable=false. For priority support or custom professional services we have several options: https://wisej.com/services-packages/https://wisej.com/technology-partner/.

  • Luca answered Dec 12, 2022 - 2:11 pm
  • last active Dec 12, 2022 - 2:11 pm
0 votes

I am curious on how this post suddenly got 6k views lol Also sorting imagecolumns would still be a nice thing. 🙂

  • vincent_ answered Dec 11, 2022 - 6:34 pm
0 votes

Check if your browser supports the client file api. Probably doesn’t.

  • Luca answered Dec 9, 2022 - 8:44 pm
0 votes

How did you derive it from DataGridViewTextBoxColumn? Did you manually do this? I am not able to choose DataGridViewTextBoxColumn in the Type Picker. When I manually create the public class it does show up, but when I am switching between designer mode and code mode, it keeps messing up the designer.cs file.

0 votes

Hi Aravind,

I just tried here deriving from DataGridViewTextBoxColumn and it showed up in the Column Editor immediately.

Is your class declared as public? If it is please share some code so we check it.

Best regards
Frank

0 votes

Hi Vincent,

This issue is fixed in our latest release (Wisej.NET 3.1.5)!

Best,
Alaa

//

0 votes

Hi Alaa,

Putting the Application.Update in the timer event indeed does the trick but why do I have to specify it? The first application instance (the one which appears when starting the application from Visual Studio updates the form and label without having to call the Update method. The following instances in new browser tabs only work well when calling the Update method. Bizar, isn’t it?? It’s a bit worrying that what you see when starting the application is not what the ‘normal’ users get to see. I’ve attached a solution showing the problem.

Thx,
Tom

0 votes

Anything yet?

 

I no longer use image columns and instead use boolean/checkboxes instead becuase the filter extension does support this method. Trying to sort without the extension on boolean values doesn’t work either. Sorting (or filtering) images would be great a lot of usecases.

Thanks!

Vincent

0 votes

Any update on this?

Thanks!

0 votes

Hi Neil,

Sorry for the late response, the extension was just updated with a fix for this issue!

While it’s still not available as a NuGet package, you can still clone the Extension Repository, build it and then include it in your projects!

We’ll let you know when the NuGet Package is shipped.

Best,
Alaa

//

0 votes

Hi Tom,

Would you mind wrapping up a small sample?

You don’t need Polling if WebSocket is enabled, if the update is reflected only when you move a window that means that the context needs updating.

It’s a very simple Application.Update(this) call, where this is the control you’re trying to update!

You can add it to the timer_TickUpdate method:

private void timer_TickUpdate(object sender, EventArgs e)
{
counter++;
Application.Update(this);
}

HTH,
Alaa

0 votes

Hi Alaa,

Thanks for your reply!
The conditional compilation approach needs to add a lot of additional code as I did in the attached example.

The addition of a reference to a separate branch is not useful. I can not use the code from the external library in this case in a WiseJ form. Or am I wrong? Can you give me an example?

Best regards,
Yaroslav

Showing 1721 - 1740 of 11k results