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

Decreasing thumb height when dragging it down

4 Answers 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 07 Nov 2011, 03:23 PM
Hi,
I use RadGridView with EnableRowVirtualization="True". ItemsSource is VirtualQueryableCollectionView. GridView contains rows with details(RowDetailsVisibilityMode="Visible"). When VerticalScrollBar from GridView scrolled down(dragging the thumb by mouse),  the size of the thumb is decreased.

I investigated that ScrollableHeightPropertyKey calculated without adding detail height at first time then ScrollableHeightPropertyKey is increased by details height(from visible area). ScrollableHeightPropertyKey is private property so i can't affect on it.

The ScrollableHeightPropertyKey growing when i dragging the thumb down(details from visible area). When i arrived to the end of the GridView the thumb size stabilized.
I tried to use ScrollMode="Deferred" but the issue is the same.

Xaml:
<controls:RadGridView x:Name="TK"
         EnableRowVirtualization="True"
         ScrollMode="RealTime"
         IsFilteringAllowed="False"
         RowDetailsVisibilityMode="Visible"
         IsSynchronizedWithCurrentItem="False"
         ItemsSource="{Binding TestCollectionView}" 
         RowDetailsTemplate="{StaticResource TestDetailTemplate}">
...
</controls:RadGridView>

When i don't use row virtualization the thumb size stay the same.
Or if i use RowDetailsVisibilityMode="VisibleWhenSelected" also the thumb size staying the same.

Is it possible to overcome this situation?

Thanks to all,
Roman Denysenko

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 08 Nov 2011, 03:00 PM
Hi Roman,

 When the grid EnableRowVirtualization is off all row details will be loaded initially and that is why the total height will be correct. In case of row virtualization the grid will load every row details on demand and the total height will be changed on demand as well. You can define some estimated height in RowHeight to avoid big changes in the total height of the grid.

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Roman
Top achievements
Rank 1
answered on 08 Nov 2011, 08:34 PM
Hi Vlad,
I was trying to set RadGridView.RowHeight  equal to row without detail plus height of detail.
But in this case height of row without detail become like row plus detail height. I have the same problem in result.

Best regards,
Roman Denysenko
0
Roman
Top achievements
Rank 1
answered on 21 Nov 2011, 03:43 PM
Hi,
Do you have some other solutions for this behavior?

Thanks to all,
Roman Denysenko
0
Roman
Top achievements
Rank 1
answered on 09 Dec 2011, 09:04 AM
Hi,

The same situation with column virtualization. When i scroll horizontal scroll bar the thumb size changes also.

Regards,
Roman Denysenko
Tags
GridView
Asked by
Roman
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Roman
Top achievements
Rank 1
Share this question
or