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 want to set the AllowExport property of the LayoutSettings serverside. How do I do this? I have tried something like this below but it does not work.
if (UserRights().Export.ToLower() == "false") regDataGrid.RootTable.AllowExport = "No"; else regDataGrid.RootTable.AllowExport = "Yes";
function regDataGrid_OnRowContextMenu(controlId, rowType, rowElement, menuObject) { var regDataGrid = ISGetObject(controlId); menuObject.Items.GetNamedItem("mnuCopyCell").Hide(); //Hide Copy Cell menu menuObject.Items.GetNamedItem("mnuCopyRow").Hide(); //Hide Copy Row menu menuObject.Items.GetNamedItem("mnuCopyTable").Hide(); //Hide Copy Row menu return true; }
if (UserRights().Export.ToLower() == "false") regDataGrid.LayoutSettings.AllowExport = ISNet.WebUI.WebGrid.Export.No; else regDataGrid.LayoutSettings.AllowExport = ISNet.WebUI.WebGrid.Export.Yes;
For your information, I recommend you to put this syntax on OnInitializeLayout event.
Hope this helps.
Regards,
Bernard
Thank yo uthat worked. I also have another question....
How do I hide the "Copy this Table" from showing up when you right click on the grid? I would also like to do this from the code behind page as well.
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