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,
Please provide the javascript to export the Hierarchical Grid Data to Excel. I have the below javscript code for Exporting the Root table. I have attached my sample.
In my sample I have integrated the excel icon to the status bar and onclick of it i am calling the below javascript function
function ExportToExcel(gridId) { var webGridId = ISGetObject(gridId); webGridId.ExportGrid(webGridId.RootTable.Id, "EXCEL", "PORTRAIT"); }
Please can u provide the javscript code or some sample to export the Hierarchical Grid Data or child table data.
Regards,
Ganesh Nayak K
function ExportRootTable() { var WebGrid1 = ISGetObject("WebGrid1"); //export grid data to Microsoft Excel WebGrid1.ExportGrid("Customers", "EXCEL", "PORTRAIT"); return true; }
Here’s snippet example code how to export the child table:
function ExportSelectedChildTable_Orders() { var WebGrid1 = ISGetObject("WebGrid1"); //export grid data to Microsoft Excel WebGrid1.ExportGrid("Orders", "EXCEL", "PORTRAIT", WebGrid1.GetSelectedObject().ToRowObject().GetParentRow().RowElement); return true; }
I attached the page that show how implement the JavaScript code.Please try to add the page to the WebGrid Samples Solution to see the result.Regards,Hans K.
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