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
I have two client-side buttons above my WebGrid 6.0, one for pdf export and one for Excel export.I need to check in WebGrid1_PrepareExportExecute if the user has selected pdf or Excel export. Is that possible?// Staffan
Please try to store the information in an html hidden input.
<input id="ExportType" type="hidden" runat="server" />
On your client-side button click event, set the value of the html hidden input.
function Button1_onclick() { // retrieves WebGrid's object var WebGrid1 = ISGetObject("WebGrid1"); var ExportTypeResult = document.getElementById("ExportType"); ExportTypeResult.value = "EXCEL"; WebGrid1.ExportGrid("", "EXCEL", "PORTRAIT"); // export grid to excell }
And obtain the stored information in PrepareExportExecute server side event of WebGrid by using following code.
protected void WebGrid1_PrepareExportExecute(object sender, ISNet.WebUI.WebGrid.PrepareExportExecuteEventArgs e) { string ExportResultType = ExportType.Value; }
Hope this help.
Perfect, thank you!
Glad to hear the good news.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
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