This is a migrated thread and some comments may be shown as answers.

[Solved] set_selected speed problem

0 Answers 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Francisco
Top achievements
Rank 1
Francisco asked on 12 Mar 2013, 05:33 PM
Hello

I'm using set_selected() to select many rows from a RadGrid in a loop similar to this:

mtv = grid.get_masterTableView();

dataItems = mtv.get_dataItems();

for (z; z < AllAvailablePipes; z++) {

    dataItem = dataItems[z];

    var item = dataItem.set_selected(true);

    SelectedPipes = SelectedPipes + 1

    if (SelectedPipes == PipesToBeSelected) break

}


Telerik.Web.UI assembly version is 2011.1.519.40

The problem is the speed. It takes about 5 to 10 seconds for this to run for about 80 rows. In some old slow computers where I need this to run, it takes more than 25 seconds!!!

The grid has a column GridClientSelectColumn:

 

<telerik:GridClientSelectColumn ConfirmDialogType="RadWindow" UniqueName="ClientSelectColumn">
     <HeaderStyle Width="50px" /> 
</telerik:GridClientSelectColumn>

 

Removing that column reduces the time by half. But that is still too much and I need that column. ClientEvents like OnRowSelected or OnRowSelecting are not used at all.

Any suggestion?

Thanks, Francisco.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Francisco
Top achievements
Rank 1
Share this question
or