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
Hello,
Is it possible to control the row checker (checkbox) behaviour via client side?
For instance disable/enable or override it's internal functionality.
Thanks
Following JS function get the checkbox element of RowChecker and invoke click() method to simulate click action
function ClickRowChecker() { var grid = ISGetObject("WebGrid1"); var colHeader = grid.RootTable.GetElement(WG40.COLHEADER, WG40.HTMLDIV); var colHeaderRow = colHeader.childNodes[0].childNodes[0].childNodes[0]; var checkRowElm = colHeaderRow.childNodes[1].childNodes[0].childNodes[0].childNodes[0]; checkRowElm.click(); }
To disable the checkbox element, simply set its disabled to true.
function DisableRowChecker() { var grid = ISGetObject("WebGrid1"); var colHeader = grid.RootTable.GetElement(WG40.COLHEADER, WG40.HTMLDIV); var colHeaderRow = colHeader.childNodes[0].childNodes[0].childNodes[0]; var checkRowElm = colHeaderRow.childNodes[1].childNodes[0].childNodes[0].childNodes[0]; checkRowElm.disabled = true; }
Hope this helps.
Glad to hear that the snippet code helps.
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