I’m trying to implement a custom autocomplete for TagTextBox with a UserPopUp.
Can’t figure out how to show UserPopUp on TextChange: in TagTextBox event is fired when a tag is added, I would need an event to fire on every key press in text box field.
Could you please help me?
Hi Ivan,
I tried
Dim package3 As New Widget.Package
package3.Name = “dx.messages.de.js”
package3.Source = “/Resources/js/DevExpress/localization/dx.messages.de.js”
.Packages.Add(package3)
Application.Eval(“DevExpress.localization.loadMessages(‘de’); DevExpress.localization.locale(‘de’)”)
in the beginning of DXGrid initialize code, but I receive “DevExpress is not defined” error message.
Is it possible by any chance for you to send me small sample code how you get to manage DXGrid localization. It is a big problem for me now?
Many thanks in advance!
If you wish you can contact me directly at: https://www.facebook.com/mariyan.gotsev/
It seems we work in very close scenarios: wisej+devex integration problems 🙂
Hi there.
I also had many problems getting this to work. Even if you rely on the dxDataGrid set in the Extension itself it doesn’t work well. It goes like that: if you have the dxDataGrid dropped in a Window, the first time you open it, it doesn’t work (DevExpress is not loaded yet). If you close the Window and open again, it works.
Since I didn’t know how to load the DevExpress in the Default.html and it hasn’t been posted any sample on it, I dropped a DevExpress button in my Login Window and used it to Choose the Language. This way, Wisej had to load the DevExpress package and by the time the user gets to the Window with the Grid, it will be already present and it will work. In my case, I load my own .json language file with my own translations and it works this way.
If you don’t get it working I can produce a sample for you tomorrow. Let me know.
Have a great Sunday!
Cheers.
Ivan
Hi,
I also need to be able to set default value for newly added row. Would you please, publish solution code for that?
Hi again!
According to DevEx, (in order DXdatagrid to be localizable in run time) I have to execute: Me.Eval(DevExpress.localization.locale(‘de’); ”) BEFORE DXDataGrid being initialized.
I can’t do so as I receive DevExpress is not defined error.
I can’t refer all.js library of DevEx in main.html page, as it going in conflict with all.js in your Wisej.Web.Ext.DevExtreme.dll.
I can’t remove all.js from your Wisej.Web.Ext.DevExtreme.dll as everything stops to work.
I added the code in InitScript but nothing happens. No error message, no German language interface.
.InitScript = “DevExpress.localization.loadMessages(‘de’); DevExpress.localization.locale(‘de’);”
I also did: Application.Eval(“DevExpress.localization.loadMessages(‘de’); document.body.lang=’de’;”) – nothing happens.
How can I execute Me.Eval(DevExpress.localization.locale(‘de’); ”) from your Wisej.Web.Ext.DevExtreme.dll BEFORE DXDataGrid being initialized, is the main question?
Thank you!
Ok,
When i said wisej you understood,
So, a public str as string in a module is accessible across all sessions/threads.
and a “dim str as string” only in a form?
i’m using Application.Session.LkParams to be sure they exists only in the session/thread.
Wisej doesn’t have global variables or any other kind. It’s not a language or a complier. It’s a .NET framework written in C#.
Statics (globals in VB.NET), instance, local variables are all standard variable scopes that are mostly identical across languages. Wisej doesn’t change the way .NET works.
You can use statics that are shared across the app domain, or you can use instance variables declared in a form or page or save them in the session object.
The session (Application.Session) is a web concept that doesn’t exist in any language. Web frameworks (like Wisej) use a static cache to store a container associated to a unique key created and stored in the client browser. Web frameworks (like Wisej) restore the session container at the beginning of every request.
Additionally, when you use static (shared resources) you should take care of the synchronization because they can be accessed by multiple threads at the same time. Look up thread synchronization in VB.NET or C#.
HTH
Perfect!
Thanks!!
Hi Jesus
I atach a sample that I hope could be useful for you
Its how to manipulate the widgets properties of tabheader using the Eval() void
this.tabPage1.Eval(“this.getButton().exclude()”);
this.tabPage1.Eval(“this.getButton().show()”);
Regards and happy coding
Adding the font to my local machine fixed the font issue n the designer (kind of). The font in the designer is set to the theme default – but it apears smaller in the Visual Studio designer than it does in the browser – see the “Control Point Name” label – the “Name” portion is cut off because the font the browser is using is larger.
Also the text boxes are rendering in a shorter width than what I have set in the designer. The textbox autosize field is set to OFF on the text box
Hi Daniel
Your code looks fine
The only thing to worry about when using static patterns is to make sure to disconnect clients when their session expires to avoid leaks.
Regards and happy coding
Thank you. The InitScript helped to position the images correctly.
One quick question. The PictureBox BackgroundImageLayout when set to None, it is displayed as Tile in the WiseJ side. Is this a known issue?
Huynh,
checking again with our latest release (2.2.48), it works ok.
What Wisej version are you using? Any chance to test it with 2.2.48 on your end?
Best regards
Frank
I tried that too and it all works well.
Huynh,
thanks for reporting that issue and providing a test case.
I can reproduce the issue and logged it as #2660.
We´ll let you know when a fix is available.
Best regards
Frank
Hi Luca.
Were you able to get that sample you mentioned earlier?
Cheers.
Ivan
Hi Paul,
I figured out what was causing the problem:
On IIS7.5 the default setting under SSL/Client certificates is “ignore”, in IIS10 it seems to be “accept”, so after I switched it to “ignore” everything works fine again. For some reason IIS10 do not like Firefox client certificates ;). Still very annoying behaviour, cause it somehow worked but with the need for refresh after each action (not on each control, like ListView seemed to work fine, when Radiobuttons didn’t).
You can close this question as solved
Thanks,
Jan Mika
Thank you.
I have verified that it works if i change menu items during the "new". I have statically assigned the contextmneu to multiple gridviews,
and I would like to modify the menu items based on the cell contents, so I tried to intercept the load event to modify the menu,
but it is never triggered. The version is 2.2.47
At the moment I cannot update because the license has expired
Nello Pernice
Thank you for your answer.
I will try soon
Nello
Hi Paul,
the versions are:
Firefox: 88.0.1 (64-Bit)
Wisej: 2.2.48.0
I upgraded wisej to latest yesterday, but that didn’t change anything.
I also noticed the problem only persists with SSL and only with firefox (tested from 3 completely different machines with different internet providers).
If you could send me an email to this account’s email, I’d send you both links to our server (http and https).
Pretty sure it is related to SSL settings on IIS and not to wisej itself. On the other hand we have another page (created wit TD-mobile) on the same server and it works with SSL.
Thanks,
Jan Mika
