Hi Luca,
I created a sample program.
best regards
Bernhard
Hi Jay
Hi Jay,
You can try to use one of the RichTextEditors extensions,
You can try TinyMCE, TinyEditor, or if you want something that resembles a code editor you can also use the AceEditor extension!
They’re all available as NuGet packages or you can directly build them yourself.
Best,
Alaa
//
Hi Jay,
Adding to my last answer, you can also set the visibility of each column according to your needs.
It would be better to implement your own filtering logic in the button click event and then you can decide what column you want visible or not.
Also, if you wish to have manual control, you can also use the ColumnVisibilty Menu.
The ColumnFilter extension is better used to filter rows.
HTH,
Alaa
//
Hi Jay,
You can use the ColumnFilter extension available as a NuGet Package, or you can also build it from source.
With it, you can add your own custom filtering logic and tailor it to your needs.
HTH,
Alaa
//
Hi Kürşat,
Can you please send a reproducible test sample?
Thanks!
Alaa
//
Hi Bjorn,
The easiest thing you can do is installing the extensions via the NuGet Package Manager in Visual Studio.
It’s as simple as right clicking the solution, then choosing the “Manage NuGet Packages..” option in the resulting Context Menu.
From there, you can search for Wisej-3-PrintPreview and simply install it.
You can also build each extension from source like you were trying to do, for that you have to add both .NET4.8 and .NET 6 assemblies if your application is targeting them both.
HTH,
Alaa
Hi Manfred,
can you please contact us at supportATwisej.com and provide us with the full key you are using in web.config?
Then we can figure out best, what the issue might be.
Thanks in advance,
Frank
Hi Manuel,
You can implement it using JavaScript as mentioned in their documentation.
You can build it using whatever web system you are familiar with then use the JavaScript in a Wisej page.
You can also contact us for a quote on our professional services: https://wisej.com/services-packages/
HTH,
Alaa
//
Hello Luca,
We already tried this and is is is not working. If we set Application.CurrentCulture and read it back we still get the old instance back.
static void Main()
{
var enHU = new CultureInfo("en-HU");
var huHU = CultureInfo.GetCultureInfo("hu-HU");
enHU.NumberFormat = huHU.NumberFormat;
enHU.DateTimeFormat = huHU.DateTimeFormat;
Application.CurrentCulture = enHU;
if (Application.CurrentCulture == huHU) {
MessageBox.Show("nothing changed");
}
Application.MainPage = new Page1();
}
Zip the dll and send it to the support email address please.
Snippet
static void Main()
{
var enHU = new CultureInfo("en-HU");
var huHU = CultureInfo.GetCultureInfo("hu-HU");
enHU.NumberFormat = huHU.NumberFormat;
enHU.DateTimeFormat = huHU.DateTimeFormat;
Application.CurrentCulture = enHU;
Application.MainPage = new Page1();
}
Works well. It’s not a workaround, a culture with english language and hungarian formatting is a custom one by definition.
If you need a custom solution change request, please send the request through the TP channel.
yes indeed there’s a print dialog, where to enter the path and filename.
should work via this extension: https://github.com/iceteagroup/wisej-extensions/tree/2.5/Wisej.Web.Ext.PrintPreview
can somebody let me know the easiest way how to add this extension please?
I never did this before so don’t know which files I need to download and where to locate them and how to add them in visual studio.
thanks in advance.
Hi Bjorn
Hi Alaa,
thank you for you response but CultureAndRegionInfoBuilder is not supported in .net core.
We also tried to clone CultureInfo and set all the format related properties like NumberFormat but WiseJ ignores this when setting Application.CurrentCulture and stays the old value. Even if it would work I would also count this as a work around.
In the dotnet world the UICulture and Culture are very important for any international company.
I understand that this might be a breaking change for WiseJ. Would this possible for WiseJ 4?
best regards
Bernhard
@David, the sample you mentioned uses a different timer: System.Timers.Timer.
Statics are single instance objects. When you create a timer object like System.Timers.Timer (it’s a system timer, see MSDN) as a static object it’s available to the application regardless of the scope of the code. This is not a Wisej.NET construct, it’s just statics in any system.
When the thread timer fires an event, it means that the OS calls the handlers attached to the event delegate. To call the handlers the OS creates a thread and simply starts calling all the handlers. If handler1 was attached from session A and handler2 was attached from session B that information is completely lost since the concept of session doesn’t exist in code. So, when the call arrives to handler1 (session A) Wisej.NET allows you to restore the context (session) using any control (controls in Wisej.NET save a reference to the session that owns them) so that the code can execute in the session context.
However, since the call is coming from an OS thread and there is no browser request obviously the server cannot send a response without a request. That’s when you need the websocket connection – to “push” the update out to the browser without the browser having requested it. Application.Update(IWisejComponent): it pushes out to the browser the entire current state differences. Whatever you use as an argument is an IWisejComponent that is used only to retrieve the session. You can also save an reference to Application.Current and use that one.
The example in this issue is different. It used a Wisej.Web.Timer, which is a component that is created on the server AND the browser and it fires the tick event from the browser. The request comes in, and the response goes back. No need to use Application.Update(). Unless, like in the issue, you also attached to the tick event from a different session – the different session doesn’t have a request to respond to because it was coming from the first browser. Which also means that when the first user closes the browser the javascript timer is terminated.
For the shared drawing, you have the same situation. If you create a javascript component it’s in the browser, you cannot share it with another browser. But you can share the set of data use for the drawing. In the sample you mentioned it’s List<Point> this.draw. Make is static, synchronize (lock) access, add a static event and an Application.Update() (actually in this case you don’t need this because the thread timer is already pushing the updates) when adding points and you have a shared drawing system.
See attached.
Hi Bernhard,
It’s best to create your own Culture.
You can check out the MSDN Documentation on how to create your own Culture!
The UI and Culture thread aren’t necessary for what you’re trying to do!
HTH,
Alaa
Hi Nicholas,
We have a similar control in Wisej.NET which is the TagTextBox.
The control can be extended to behave similarly to the TokenEditor.
HTH,
Alaa
Hi Bernhard,
Thank you for reaching out,
We’ll prepare a sample for you to demonstrate the navigation process in Wisej.NET!
But to not keep you hanging, you should be able to save the hash in a Cookie or LocalStorage and then retrieve it in an Application.ApplicationRefresh event.
Best,
Alaa
//
Hi Nicholas,
Can you please provide:
You can also check out our Deployment book for more info about deploying to Microsoft Azure.
Best,
Alaa
