Grid

2 replies. Last post: June 28, 2011 5:19 AM by Riendy Setiadi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

I want to uncheck all checked rows. And found that it takes forever to finish this simple task. Please let me know if there is any other faster way to do it. Here is snap shot of my code:


///

///

///

function UnCheckRows(gridID) {

    try {

        var grid        = ISGetObject(gridID);

        var table       = grid.RootTable;

        var checkedRows = table.GetCheckedRows();


        for (var i = 0; i < checkedRows.length; i++) {

            var row = grid.RootTable.GetRowByKeyValue(checkedRows[i].keyValue);

            row.Uncheck();

        }

    }

    catch (err) {

        alert("UnCheckRows: " + err.description);

    }

}

All times are GMT -5. The time now is 8:34 PM.
Previous Next