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
We have some grids in our application that we've developed a special excel export for. Rather than have a separate button outside the grid to run these exports, I'd like to catch the export event from the grid and just replace the file with a totally different file. That way users can keep using the export button they have been using all along. Is that possible?
Thanks for your help!
Hello,
Yes it is possible to run your scenario.I suggest you to modify the item in export context menu with new menu item.And set the menu item’s event as you please.
You could modify the export context menu item in OnExportContextMenu client side event of WebGrid.Here’s the example snippet code that perhaps you could use.
function WebGrid1_OnExportContextMenu(controlId, table, menu, location) { var WebGrid1 = ISGetObject(controlId); // Clear all default Export Context Menu menu.ClearAll(); // Create new menu item var menuItem = new WebMenuItem(); menuItem.Text = "My Menu Item"; menuItem.Name = "MyMenu"; menuItem.OnClick = "NewFile"; // Add Menu Item menu.Items.Add(menuItem); return true; } function NewFile() { alert("Your new file"); }
I attached the example sample, that implement customize export context menu, as well.
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