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

Slow rendering for sub gridview within row details

1 Answer 160 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Shrinand
Top achievements
Rank 1
Shrinand asked on 02 May 2017, 08:10 PM

I have a setup that each row detail contains a child gridview, and when parent row is expanded, the child gridview should show all its rows, ie. no scrollbar because we don't want "double" scrollbars.

The issue is when the child gridview has many rows (in our case, 100), it takes a while (~6s) from expand the parent row to display all children rows.

Do you have any tips to speed up this scenario?

1 Answer, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 05 May 2017, 02:21 PM
Hi Shrinand,

By default, the control placed within the RowDetails of the RadGridView is measured with infinity. On the other hand, when a RadGridView is measured with infinity - its UI Virtualization mechanism is broken. With this in mind, if you have such setup - you should set a fixed height for the inner RadGridView in order to not observe such performance degradation. Eventually, you can hide the ScrollViewer of the inner RadGridView. I have attached a sample for your reference.

Regards,
Stefan Nenchev
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Shrinand
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Share this question
or