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
Hi
I want to be able to copy a row in a WebGrid then paste it and save it in one click rather than having to right click for context menu, left click to paste, right click for context menu and left click to save
So I'm looking at adding a 'Paste and Save' item to the context menu, how can I do that?
In order to add a menu item in WebGrid’s row context menu, please try to use following approach.
function WebGrid1_OnRowContextMenu(controlId, rowType, rowElement, menuObject) { var WebGrid1 = ISGetObject(controlId); var separator = new WebMenuItem(); separator.Type = "Separator"; separator.Name = "MySeparator"; var menuItem = new WebMenuItem(); menuItem.Text = "Paste and Save"; menuItem.Name = "MyMenu"; menuItem.OnClick = "PasteandSave"; // Add Menu Separator and Menu Item menuObject.Items.Add(separator); menuObject.Items.Add(menuItem); return true; } function PasteandSave() { var grid = ISGetObject("WebGrid1"); //implement the paste and save logic in here }
After the context menu appearing and user click the “Paste and Save” menu item, “PasteandSave()” function will be invoked. You will need to implement the logic of paste and save scenario in here.
Hope this helps.
Thanks for that, apologies, I wasn't very clear in my initial question.
It's the Paste and Save functionality I need as I don't know how to trigger those events and can't find it in the documentation, the server side functionality for doing the work is in place i just need to know how to call Paste and Save from the client side.
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