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

GridNavigator.SelectLastRow is very slow

2 Answers 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Henri
Top achievements
Rank 1
Henri asked on 14 Apr 2014, 10:21 AM
Hi,

I'm using the GridView from version 2014 Q1 SP1.

I filled the Grid in Unbound Mode (autogeneratecolumns=false), and added a child hierarchy using Load-On-Demand (ResourceNeeded event).
The Top Level (MasterTemplate) is fully loaded into the Grid in no time, about 8000 records.

Scrolling down using the Scrollbar is fast, and selecting the bottom record is fast as well.

But selecting the last record using GridNavigator.SelectLastRow is very slow (about 10 seconds). 
SelectFirstRow afterwards is immediate, SelectLastRow again is still slow at about 10 seconds.

Using DeferRefresh does not change a thing.

How can I speed this (SelectLastRow) up?




2 Answers, 1 is accepted

Sort by
0
Henri
Top achievements
Rank 1
answered on 14 Apr 2014, 11:04 AM
Calling 

grid.TableElement.RowScroller.Scrollbar.PerformLast();

before calling

grid.GridNavigator.SelectLastRow();

seems to solve my problem
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Apr 2014, 02:52 PM
Hello Henri,

Thank you for writing.

I confirm that this is a performance issue with our RadGridView and its load on demand functionality. I have logged it in our Feedback Portal. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - Feedback Item

I have also updated your Telerik points.

Currently, as you already found out, the suitable workaround is to position the scroll bar to the bottom first and then select the last row.

Should you have further questions, I would be glad to help.

Regards,
Desislava
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Henri
Top achievements
Rank 1
Answers by
Henri
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or