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
Is it possible to insert a menu item at a certain location ? At the moment I only manage to add my custom menu items at the end of the webmenu, but I would like to have them at the begining ...
Is it possible ?
You can try to use “Move” method that available in menuObject.Items.The snippet below shows how to add a row context menu item and a separator to the top position of WebGrid row context menu.
function WebGrid1_OnRowContextMenu(controlId, rowType, rowElement, menuObject) { var separator = new WebMenuItem(); separator.Type = "Separator"; separator.Name = "MySeparator"; var menuItem = new WebMenuItem(); menuItem.Text = "View Row's KeyValue"; menuItem.Name = "MyMenu"; menuItem.OnClick = "RowKeyValue"; //Add Menu Separator and Menu Item menuObject.Items.Add(menuItem); menuObject.Items.Add(separator); menuObject.Items.Move(menuItem.Index, 0); menuObject.Items.Move(separator.Index, 1); return true; }
Hope this helps.
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