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

Scolling with RowDetails open is impossible

6 Answers 157 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Datafyer
Top achievements
Rank 1
Veteran
Datafyer asked on 28 Apr 2011, 09:53 PM
In the included code sample, here, if a row has its rowdetails open then scrolling becomes almost impossible. This is because the vertical scroll bar always wants to snap back to a given place.

For instance, scroll to the bottom of the list, open the details, and try to scroll up.

I did notice when creating this that the tab control has something to do with the problem. Without the tab control, scrolling is slow, but not freaky.

6 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 29 Apr 2011, 09:00 AM
Hi Patrick,

When you have row details, their height is not known prior to expanding them. The height can be any. That is why the whole scroll area height is constantly recalculated when row details are expanded. In other words, we cannot do the math beforehand, since we really don't know what will show up in the row details -- it can be 20px or 2000px. That is why we re-do the math each time we gain knowledge about the height of a row details. That is why it seems that the scroll-bar is jumping around. Unfortunately, there is nothing that we can do about this.

Kind regards,
Ross
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
Datafyer
Top achievements
Rank 1
Veteran
answered on 29 Apr 2011, 03:38 PM
Is a solution is explicitly set the row height? All the controls inside are set to a static height.
0
Rossen Hristov
Telerik team
answered on 29 Apr 2011, 03:39 PM
Hi Patrick,

Row Details are actually inside the row, so if you set an explicit row height, you may clip them. But you can go ahead and try this -- it may help in your particular scenario.

Greetings,
Ross
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
Datafyer
Top achievements
Rank 1
Veteran
answered on 29 Apr 2011, 03:47 PM
Just to be clear, based on the code sample I sent there is no way to get rid of the jittery scrolling?
0
Rossen Hristov
Telerik team
answered on 29 Apr 2011, 04:07 PM
Hi Patrick,

I am running out of ideas. Can you try these two:

A. Turn of vertical virtualization, so that all rows are realized.
B. Instead of Row Details, use Hierarchy. You will place the gauge and inner grid in a custom hierarchy tempalte. The UI elements inside the hierarchy template are not recycled, so this might help.

Greetings,

Ross
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
Datafyer
Top achievements
Rank 1
Veteran
answered on 29 Apr 2011, 08:16 PM
I tried your suggestions, but the problem actually seems to be the gauge. If I remove it then the scrolling is smooth. I believe the guage wants to display in full for some reason and this only happens with the gauge in the tabcontrol.
Tags
GridView
Asked by
Datafyer
Top achievements
Rank 1
Veteran
Answers by
Rossen Hristov
Telerik team
Datafyer
Top achievements
Rank 1
Veteran
Share this question
or