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'm using the row checker in my datagrid.
but i want to disable the select all checkbox available in the header.
How could i achieve that.
You can try to disable the select all checkbox that available in the header by using JavaScript code.
First step, we will need to obtain the element of the select all checkbox. The snippet code below is a sample about how to get the element of the select all checkbox that available in the column header. In this sample, the row checker is placed in the first column of WebGrid. Please note that you might need to modify the code if the IsRowChecker column has different index location.
function Button1_onclick() { var WebGrid1 = ISGetObject("WebGrid1"); var rowCheckerElm = WebGrid1.RootTable.GetElement(WG40.COLHEADER, WG40.HTMLTABLE).cells[1].childNodes[0].childNodes[0].childNodes[0]; //disable the rowCheckerElm rowCheckerElm.disabled = true; //remove or hide the rowCheckerElm //rowCheckerElm.style.display = "none"; return true; }
After get the element of the checkbox, we can disable it by setting the disabled property to true. We can even hide/remove it by setting the display style property to “none”.
Hope this helps.
Thank you for this script. It is working fine.
Glad to hear that the script helps.
Should you need further assistance or run into any technical 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