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

Slow Row Selection with many rows and No Paging

3 Answers 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeremy Yoder
Top achievements
Rank 1
Jeremy Yoder asked on 19 Aug 2010, 03:36 PM

I have a grid without paging and scrolling enabled since we want to list all entries together. It has a GridClientSelectColumn column and only 2 data columns. Usually the data is 100 rows or less, but In certain cases, it can be 1000 or more. In those cases, if I scroll down to the bottom, the first item I select take 2-3 seconds to occur and then throws this error message...

"Stop running this script? A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer might become unresponsive."

The prompt has a Yes/No option to click. We obviously don't want this. For what it's worth, when the script error pops up, the row is selected, so it appears the script was waiting for the selection to take place before throwing the error. But again, it's only on the first selection; after that, further row selection is instant.

Don't know if this helps, but if I remove the GridClientSelectColumn column, the error still occurs about half of the time, but not every time.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 19 Aug 2010, 04:15 PM
Hi Jeremy,

We have already optimized the select-all / unselect-all scripts, so I am afraid you should either reduce the number of items by utilizing paging or select such a large number of rows server-side only, as demonstrated here:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectrowwithcheckbox/defaultcs.aspx

Regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jeremy Yoder
Top achievements
Rank 1
answered on 19 Aug 2010, 05:18 PM

I'm not using select-all or unselect-all -- I am simply selecting one row at the bottom of the list. Does that change what you're saying?
0
Pavlina
Telerik team
answered on 20 Aug 2010, 10:36 AM
Hello Jeremy,

Try to disable debugging in your web.config file:
<compilation debug="false">

or set the ScriptMode property of the ScriptManager / RadScriiptManager to "Release" and see if the error still appears.

Regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Jeremy Yoder
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Jeremy Yoder
Top achievements
Rank 1
Share this question
or