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 Delete several rows? (frontstage,backstage) in WebGrid7?
Hello,
As default, You could not delete several rows. You can only delete one by one. However, you can delete several rows at the same time, if you use BatchUpdate feature. You can select which rows that you wanted to be deleted. When you finished, you can accept the changes.
Regards,Handy
I can delete several rows by js Code //获取选择的N行 function ShowSelection() { var grid = ISGetObject("WebGrid1"); var rows = grid.RootTable.GetCheckedRows(); var arr=new Array(); while(rows.length!=0) { for (var i=0;i<rows.length; i++) { var row = grid.RootTable.ToRowObject(rows[i]); arr[i]=String(row.KeyValue);//行的主键值 }return arr; break; } if(rows.length==0) {alert('至少选择两行!'); return arr; }
}
//删除多行function deleteRows(){//if(b[0]==null)//{//alert('null')//}var b=new Array();b=ShowSelection();var grid = ISGetObject("WebGrid1");var i=0; var maxRow=b.length;//待删除的行数量 var updateProcess = setInterval (function () { if (!grid.IsInProgress && i < maxRow) {
var rows = grid.RootTable.GetCheckedRows(); var row = grid.RootTable.ToRowObject(rows[i]) row .Delete(); i++; } if (i >= maxRow) { clearInterval(updateProcess); updateProcess = null; } }, 1);
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