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
for example:
i want to customize an operation(add()) for ContextMenu!
function add()
{....}
how can i add "add()" to ContextMenu?
The snippet code below shows how to add a menu, My Menu, in WebGrid’s 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(separator); menuObject.Items.Add(menuItem); return true; } function RowKeyValue() { var WebGrid1 = ISGetObject("WebGrid1"); var key = WebGrid1.GetSelectedObject().GetRowObject().KeyValue; alert(key); return true; }
The complete sample is enclosed as attachment. Hope this helps.
thank you
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