Hi Cristian,
I’ve just tested with Edge on Windows and Mac, Cookies work fine as expected.
Can you please provide us with a sample to investigate?
Thank you,
Alaa
Hi again.
Well, well, well… it is now working. 🙂
Honestly, I “think” I didn’t do anything. I will account it to the Wisej gods working while I slept.
If it helps someone, I am using my own JSON file for pt-br (Português Brasil), which you can download from a DevExpress Github repository, then loading it right before showing the grid:
string lcDictionary = File.ReadAllText(Application.MapPath("App_Data/DevExtremeLocalization/pt-br.json"));
string lcEval = "DevExpress.localization.loadMessages(" + lcDictionary + ")";
Application.Eval(lcEval);
Application.Eval("DevExpress.localization.locale('pt-br')");
Ok, it works,
but I wonder is it the best way to do it ?, I have read that keyup is in the lazy events of wisej.
Could it be done in javascript?
My clients are very used to using enter to switch textboxes.
Hi Jesus,
yes you can use the exact same code as you would in WinForms.
e.g. attach to the KeyUp event of your text box and use the following code
if (e.KeyCode == Keys.Enter) SelectNextControl(sender as Control, true, true, true, true);
Best regards
Frank
Hi Glenn,
you might want to check the settings in IIS (or web.config) for your site.
Look for DefaultDocument.
Best regards
Frank
Thanks for your answer, Kevin.
Is there any further documentation or sample available how to implement a custom SessionTimeoutForm ?
I would give that a try but my requirement is a little different. Let me try to explain in more detail:
I await that many of my users will use the app and leave the browser open if the work is done.
To free up server (session) resources I do not need to remind them that the session is running out in a few minutes and want to suppress this “server-side” dialog.
Instead once the session timeout occurs I want to display them a message in their browser window (e.g. by javascript using alert or SweetAlert) which displays that the session has timed out and they can close the browser window or reload the application. If possible at this time the session on the server should be already killed to save resources but the browser window showing the message may not be closed…
I’ve tried something like this:
private static void SessionTimeoutHandler(object sender, System.ComponentModel.HandledEventArgs e)
{
Application.CallAsync(…<display client side timeout message>…);
e.Handled = true;
}
But this seems not to kill the server side session and the message is displayed again after configured timeout period !?
Please let me know if you have any questions.
Hi Daniel,
I’ve attached another sample that suits your needs.
I’ve added a whiteCheckbox AppearanceKey, If the checkbox in the designer disappeared, make sure that:
The theme file in the sample is based off of the Blue-3 theme.
Hope this helps!
Best regards,
Alaa
Thanks Frank. That did it !
Hi Tobias,
For first, you can handle Application.SessionTimeout directly on program.cs, it’ll help you for the next.
For second, extend SessionTimeoutForm for create your own design, your eventS with syour own buttonS and create an instance on Applicaion.SessionTimeout handler for subscribe SessionTimeout event
For the case: “continue session” you can use Application.SetSessionTimeout() for add more time in session
For the case: “quit session” set e.Handle = true; for finish your session
Best,
Kevin (ITG)
Thanks for the sample.
I have applied that and I do get a White Checkbox however I was more after just a way to do it for this page only, as I will need the standard checkbox on other windows.
If I applied the theme through the Default.json file I get the white checkboxes, however if I set the AppearanceKey to the name of the theme, the checkbox disappears.
I was hoping to use a mixin theme for this one Checkbox control as I will be using the Blue-3 theme for the rest of the application.
Thanks,
Daniel.
Hi Vincent,
issue #2640 is fixed in Wisej release 2.2.48
Best regards
Frank
Hi Marcelo,
this issue was logged as #2649 and is now fixed in Wisej release 2.2.48
Best regards
Frank
Hi Luca.
Thank you!!!
I have attached a simple sample which shows a grid and a button to allow to add a New Row.
I have written some comments in the button Click, but basically, after adding the new row to the grid, I would like to set its cells with some default values. I have also added what I had tried and didn’t work.
Hi Tobias,
Application.Call takes 2 parameters, so your call should be
Application.Call("window.alert", "test");
Best regards
Frank
Hello Angelo,
It appears that there’s a small discrepancy between C# and VB.NET.
The correct syntax would be Application.Theme.Appearances(“button”).components.icon.states .
The compiler throws “Object variable or With block variable not set” because when you try to access the components as an array, it gets the entire object.
let’s say you want to change the icon’s width, for that you’ll have to use
Application.Theme.Appearances(“button”).components.icon.states.default.properties.width = 30
Hope this helps.
Best regards,
Alaa
Hi Daniel,
If the CheckBox disappears in the Theme Builder, it’s just because the light-theme applies a white foreground to an Icon.
You can change the textColor property of icon-light to something darker in order for you to see it.
You can find the icon-light appearance under the Appearances tree.
I have attached a sample that has a mixin included, hopefully that helps.
Best regards,
Alaa
Hi Adrian,
You can’t get the image without actually rendering the control, what you can do however is that you can set the ChartJs’s control Location to -10000, -10000. That way the control would be rendered but not visible on the screen.
Best regards,
Alaa
Hi Alaa,
the problem is to GET the text. not to SET 🙂
the property .text do not RETURN the input text with firefox
best
Hi Cristian,
I’ve just tested the blur event with Firefox and it works fine.
You can try adding the event directly from the ClientEvents property of the Page or Window that hosts the TinyEditor widget.
I’ve attached a picture that shows a small example.
Let me know if it worked fine for you.
Best regards,
Alaa
The drop down control is the same size as the combobox at a minimum or wider if you set the MinimumSize of the control because it’s the standard behavior of the regular ComboBox.
There is no horizontal autosizing in the ListBox or CheckedListBox. Use TextUtils.MeasureText() if you want to calculate the size of the text. See attached fixed sample setting the width 300.
cklb.MinimumSize = new System.Drawing.Size(300, 0);
