Ciao Messere,
For your first question, it is possible! Any changes you make to properties of controls in the designer are reflected in C# code in InitializeComponent() in the partial Designer.cs class.
You can expand the node of your Window or Page in the Solution Explorer window to see the Designer class.
The ColumnFilter extension uses a Property Extender (See: https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.iextenderprovider?view=net-5.0) that allows it to insert properties to objects of a specific type (DataGridViewColumn).
You’ll see the new property in the Designer, but it is not visible using Intellisense.
To apply a filter programmatically, it will look something like this:
this.columnFilter1.SetShowFilter(this.Column1, true);
For the second question, we’ll get that link fixed for you ASAP!
Hope that helps.
Best,
Levie
Thank you, it seems that Wisej objects stays compatible with winform ones.
So, if I want to interfere with sorting when datasource is set, I have to interfere on dataset sorting. Do you know how to do that?
Hi Adrian,
There are a few preconditions for using the SortCompare event, you can find them here:
false.”Luca created a sample in this thread where SortCompare is used you can use for reference!
https://wisej.com/support/question/how-to-show-totals-for-datagridview
Let me know if it works for you!
Best,
Levie
Hi Messere,
You can add a KeyPress event handler to your ListView, it would look like this:
private void listView1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Enter)
{
var selected = this.listView1.SelectedItems[0];
AlertBox.Show($"Selected {selected.Text}");
}
}
Please let me know if you have any questions about it!
Best,
Levie
Hi Dino,
This issue usually occurs when the designer loads multiple Wisej assemblies. Can you verify that all your references are to the same Wisej.Framework.dll (2.2.29) in C:\ProgramFiles\IceTeaGroup\Wisej 2?
If it gets loaded from /bin it might throw an error.
Try deleting both /bin and /obj folders for the projects you’re working on.
It can also throw an error when any of your dll’s reference eachother (i.e, using a library) and you build the project.
The best thing to do is make sure you use the correct references and clean and rebuild the projects.
Let me know!
Best,
Levie
If you want full customization of the DropDown, try using the ListViewComboBox or UserComboBox. You have a lot more flexibility there!
Try also the attached sample.
Remember that any change on the client, any rendering, request, event, in ASP.NET is a round trip full request causing the control to be recreated from scratch every time. This is not because of Wisej, it’s the way ASP.NET works. All HTML based systems work like that. Wisej is a Single Page Application (SPA) system where the page is one and all events and changes are processed limited to the element changed and only the changed properties affect the page.
Check this.reportViewer.IsPostBack. The entire page cycle fires on every request in ASP.NET.
Brilliant, Luca!
Thank you very much.
You can’t. The autocomplete box is entirely managed by the browser and there is no known CSS for it.
Hi Ivan, you are right. We’ll change to protected. You can get around it by attaching the Load event and:
this.Controls["buttonOK"].Text = "Test";
The control names are visible in the designer: buttonOK, messageText, expiredText. The {0} placeholder is replaced with the countdown.
Then you can use your form like this:
private static void Application_SessionTimeout(object sender, System.ComponentModel.HandledEventArgs e)
{
e.Handled = true;
// show the session timeout form only once.
if (Application.OpenForms["Window1"] == null)
{
new Window1().Show();
}
}
In the same way you can build a completely custom form.
To test it, without having to wait for the timeout, use this in the chrome console:
Wisej.Core.fireSessionTimeout();
You may have to do it twice.
Hi Levie.
Thanks for the prompt reply!
I followed your advice and added a SessionTimeoutForm inherited control. However, it looks like all objects in it are Private and therefore I am not able to change any of their properties.
I have a feeling I am missing something… 🙂
Any tip would be appreciated.
Cheers.
Ivan
Hi Ivan,
For the session timeout text, you can extend it by adding an Inherited Control > SessionTimeoutForm.
Using this, you can customize the appearance and text of the popup box and apply any resource you want to it.
The way it is setup right now is the SessionTimeoutForm has it’s own resource file (SessionTimeoutForm.resx) that it reads the values from. There is no entry in Resources.resx.
If you’d like to see all the resource names available, you can use the System.Resources.ResxReader class:
https://docs.microsoft.com/en-us/dotnet/framework/resources/working-with-resx-files-programmatically
There is an example on how to enumerate over all the resources in a file here.
I will also make a special note to update our new documentation to include important resource names and a step-by-step guide how to override the Session timeout dialog or something similar.
Please let me know if you have any more questions!
HTH,
Levie
Hi Ivan,
I have merged the changes into GitHub. The updated extension is also available in Wisej release 2.2.29.
Best regards
Frank
Hi Simone,
Thanks for the feedback! I’m able to replicate the issue and logged it as issue #2526.
I’ll keep you updated on the status of the issue.
Best regards,
Levie
Hi Ivan,
“new-password” is now available within Wisej release 2.2.29
Best regards
Frank
Hi Tung,
enhancement #2518 is included in our latest Wisej release (2.2.29).
Best regards
Frank
Hi,
this is fixed in Wisej 2.2.29
Best regards
Frank
Hi Alex,
this issue is fixed in Wisej release 2.2.29.
Have a great 2021!
Best regards
Frank
Hi Ivan,
issue #2523 is fixed in our latest Wisej release (2.2.29)
Best regards
Frank
