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

RadGridView Scroll working very slowly in new telerik version

3 Answers 192 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 1
Ajay asked on 07 Sep 2018, 01:07 PM

Hi Team,

I was using Q2 2010 SP2 - 2010.2.924.40 version and in that I was using RadGridview ScrollIntoView method to scroll to the last record.

It was only taking around 30 seconds for 1000 records

Now we updated to latest version  2018.2.515.45 version now with same code it is taking more than 1 minutes to autoscroll to last record.

Xaml Code: 

<telerik:RadGridView Grid.Row="1" Grid.Column="0" Name="EmployeeSheetGrid" Height="300" CanUserInsertRows="False" ItemsSource="{Binding Path=WorkItems}" ColumnWidth="*" AutoGenerateColumns="False" ScrollMode="RealTime" CanUserReorderColumns="False" DataLoadMode="Synchronous" CanUserSortColumns="False" CanUserFreezeColumns="False" ShowGroupPanel="False" IsReadOnly="True" >

Xaml.cs record.

 public class Employee { public int EmpId { get; set; } public string Name { get; set; } public string Address { get; set; } public string State { get; set; } public String Country { get; set; } public DateTime CurrentDate { get; set; } }

EmployeeList having 1000 records 

employeeList.OrderBy(i => i.EmpId).ToList().ForEach(s => { EmployeeSheetGrid.ScrollIntoView(s); });

 

Please provide solution for the issue.

Thanks

 

 

 

3 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 12 Sep 2018, 10:40 AM
Hello Ajay,

I tried to reproduce the issue you've described in a small sample project, however, scrolling to the last item takes no more than 4-5 seconds on my machine. I've attached the project to my reply for your reference. Please have a look and let me know if I'm missing something of importance.

Could you please also clarify whether you're deliberately iterating over the whole collection of items, as using the following code snippets brings down the scrolling time to a few milliseconds:

private void ScrollToFirst()
{
    EmployeeSheetGrid.ScrollIntoView(employeeList.First());
}
 
private void ScrollToLast()
{
    EmployeeSheetGrid.ScrollIntoView(employeeList.Last());
}

Lastly, you can try to upgrade your project to the latest official version of the controls - 2018.2.620, or wait a few more hours for our next official release - R3 2018 and see if upgrading solves your issue.

Please let me know how all of this goes.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ajay
Top achievements
Rank 1
answered on 12 Sep 2018, 11:44 AM

Hi Dilyan,

On my desktop machine also it works fast but when we are using the application in touch tablet(dell latitude tablet) we can see the difference in their execution. Old is faster than new dlls.

We have found an alternative way for this issue only scrolling once instead of each record.

Thanks for the support.

 

 

0
Dilyan Traykov
Telerik team
answered on 12 Sep 2018, 12:10 PM
Hello Ajay,

I'm glad to hear that you found my suggestion helpful.

As for the scrolling being slower on a touch device, this is most probably caused by the control's automation peers. You can disable them as demonstrated in this article, should you find it suitable if you wish to use the old scrolling logic.

If I can further assist you in any way, please let me know.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Ajay
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Ajay
Top achievements
Rank 1
Share this question
or