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 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);
Okay, I managed to make it much faster, this verion is really fast.
And that means GetRowByKeyValue is super slow!
var nLenght = checkedRows.length;
for (var i = 0; i < nLenght; i++) {
var row = table.ToRowObject(checkedRows[i]);
Hello Maged,
Yes, you're right Maged. We have several ways to get the row object. some of this several options is using ToRowObject and GetRowByKeyValue, but if we compare both of them, ToRowObject method more useful to get the row object than GetRowByKeyValue method, just like your experiment.
Regards.Riendy
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