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
How can I uncheck all rowchecker column checkboxes in the client? I tried grid.RootTable.ClearSelectedRows() and grid.ClearSelection() but neither worked. Do I have to iterate through each selected row and uncheck?
Right now I'm doing it using this code snippet. If there is a better way of doing this it would be great..
function uncheckAll() { var grid = ISGetObject("WebGrid"); var gridRows = grid.RootTable.GetCheckedRows(); for (i = 0; i < gridRows.length; i++) { gridRows[i].cells[1].childNodes[0].click(); } }
Hello,
You can use the following code to check/uncheck all rows:
function DoUncheck() { var grid = ISGetObject("WebGrid1"); var colHeader = grid.RootTable.GetElement(WG40.COLHEADER, WG40.HTMLDIV); var checkRowElm = colHeader.childNodes[0].childNodes[0].childNodes[0].childNodes[1].childNodes[0].childNodes[0].childNodes[0]; checkRowElm.click(); }
Hope this helps.
Thank you.
My code is similar to yours.
function DoUncheck() { var grid = ISGetObject("WebGrid1"); var table = grid.GetRootTable(); var checkedRows = table.GetCheckedRows(); for (var i = 0; i < checkedRows.length; i++) { var selectedRows = checkedRows[i].childNodes[1].childNodes[0]; selectedRows.click(); } }
Well, I think that's the best way so far for your scenario.
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