Dears:
We need a checkBox in the first column to that we can decide witch row will be deleted or updated,And of course we use a checkBox in the header to Make All the Checkbox Checked.
Now I show you my code in js:
function Grid_SelectAll(UltraWebGrid, CheckBox) { //oUWGrid代表GRID的名称,客户端可以取到(方法:o+GRID的ID) var oGrid = UltraWebGrid;
var oRows = oGrid.Rows;
for (i = 0; i < oRows.length; i++) { var row=oRows.getRow(i); var cell=row.getCellFromKey("CHECK"); if (cell.isEditable()) { cell.setValue(CheckBox.checked); } }}
when the row's count more than 50,we fill feel that it is slow,and more rows more slow.
can you give me someother methods to resolve this problem
Thanks!
Hello Loston,Please take a look at the following blog post - http://blog.sasq.co.uk/infragisticsrowiterationperformance and let me know if it was helpfull to speed the performance.
In fact ,I have already tried to use foreach to resolve this problem,but it does't works well.
I find it is impossible to upload the picture from my client,so I give you a link:
http://hi.baidu.com/new/hunter1927
you will find that the object UltraWebGrid.Rows has the attribute rows,so we can write the code like
foreach(var row in oRows.rows) { }
and the other question is ,the length of oRows.rows is 50,but the row 's count that show us is 12.
it means that if we want to checked 50 rows ,through this method we can only checked 12 rows.