iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I am just figuring it out whether the WebGrid control's Menu (dipslayed on click of the column header) provides Multi Language support. Or is there any workaround which should be considered for the Multi Language support.
Have a good day.
Anup Vasudeva
Hi Anup,
If you want to change the item text in WebGrid's header context menu, you can simply use SetText in OnColumnContextMenu event, as show in the sample code below:
function WebGrid1_OnColumnContextMenu(controlId, col, menu, isGroup, location) { var WebGrid1 = ISGetObject(controlId); menu.Items.GetNamedItem("mnuSortAsc").SetText("もし もし"); return true; }
You will notice that "Sort A to Z" is change to "もし もし".
Hope this could help.
Best regards,
Julia
Thanks a lot for the reply. It worked for me.
Good day.
... How exactly the parameters are being sent?...
The solution provided by Julia uses OnColumnContextMenu client side event. OnColumnContextMenu specifies the client side (JavaScript) function that will be invoked when the column’s context menu is about to be displayed. Parameters provided with this function are: controlId, col, menu, isGroup, location.
... What values do they possess. I tried using alert(...), but it outputs like [object WebGridCol]...
... What is "menuSorAsc" provided as a parameter in GetNamedItem(...)?...
‘menu.Items’ will returns the collection of WebMenuItem object of column context menu. For example: menu.Items[0] will returns the object of “Sort A to Z” context menu; menu.Items[1] will returns the object of “Sort Z to A” context menu; and so on.
Each ‘Items’ has ‘Name’ property. We can utilize GetNamedItem(name) method of WebGrid to get the indexer collection of WebMenuItem object of column context menu. So, menu.Items[0] will equals to menu.Items.GetNamedItem(“mnuSortAsc”).
Hope this helps.
Thanks for the reply. It really helped.
Following your direction, i changed the menu entirely from English to Dutch.
In English menu, when we group the rows using the "group By This Field", correspondingly it shows "Ungroup" option.
But when i converted the menu into Dutch, the "group By This Field" menu item is not working.
Instead it shows the following error:
Error: v25525 is nullSource File: http://localhost/InterSoftGridDemo/ISRes.axd?F/ISCore.js/305000751
Line: 7.
Also the WebGrid seems not be compatible with IE8. For example, the Header Menu doesnot pops up on the click of it. Plus when i run the website, it immediately shows me javascript runtime (javascript.body(..)) error.
Thanks in advance.
Anup Vasudeva.
Hello Anup,
May I know how you converted your menu into Dutch? Do you change localization language manually when click button? Or do you use SetText which Julia guided you before? Our WebGrid 7 works well in IE8. Would you mind to let us know more details regarding this issue?
Regards,Handy
Hi Handy,
I have used SetText method and changed the text statically from English --> Dutch.
But when i select the Group(Dutch Version), it doesn't Group the rows.
Even i retested it , it still pops me with the javascript error. And when i click the header , it doesn't shows me the menu.
Kindly assist me in this situation. i am really having hard time solving this issue.
Thanks in advance
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname