Hi guys,
We are having some trouble with the RadGridView and its ExtentHeight property.
In our application, a RadGridView is displayed and can contain from 1 to 5000 rows.
Some of these rows have a specific state which affects the row style:
- Normal state => row background must be transparent
- Highlighted state => row background must be Red
To help user to identify quickly the highlighted rows, we are showing a "thumbnail view" left to the grid view.
This "Thumbnail view" shows a white vertical bar which contains Red rectangle for each highlighted rows. Over this vertical bar, a "Zoom Box" rectangle is displayed to indicate which part of the table is currently visible in the viewport (see image).
We are trying to synchronize the position of the "Zoom Box" with the Vertical Offset of the RadGridView. Right not it is more or less ok when using the mouse wheel (either in the RadGridView or in the "Thumbnail View").
But it's not working properly in the following case (Zoom Box is out of sync):
- Dragging TOO FAST the scrollbar position indicator (if the RadGridView was completely scrolled using the mouse wheel before, then it works)
- Clicking somewhere in the "Thumbnail View"
After analysis we think that this problem comes from the ExtentHeight property of the RadGridView.
As we understand at the beginning, the ExtentHeight property is estimated using the "real" height of each visible rows and the default height for all other rows.
Then when the RadGridView is scrolled, the ExtentHeight property is adjusted with the "real" height of each new visible row.
Is there a way to override the ExtentHeight of the ScrollViewer of the RadGridView ?
Or another way to accomplish this synchronization?
I have added a sample project.
Thanks for your assistance,
Kind regards,
BenoƮt
We are having some trouble with the RadGridView and its ExtentHeight property.
In our application, a RadGridView is displayed and can contain from 1 to 5000 rows.
Some of these rows have a specific state which affects the row style:
- Normal state => row background must be transparent
- Highlighted state => row background must be Red
To help user to identify quickly the highlighted rows, we are showing a "thumbnail view" left to the grid view.
This "Thumbnail view" shows a white vertical bar which contains Red rectangle for each highlighted rows. Over this vertical bar, a "Zoom Box" rectangle is displayed to indicate which part of the table is currently visible in the viewport (see image).
We are trying to synchronize the position of the "Zoom Box" with the Vertical Offset of the RadGridView. Right not it is more or less ok when using the mouse wheel (either in the RadGridView or in the "Thumbnail View").
But it's not working properly in the following case (Zoom Box is out of sync):
- Dragging TOO FAST the scrollbar position indicator (if the RadGridView was completely scrolled using the mouse wheel before, then it works)
- Clicking somewhere in the "Thumbnail View"
After analysis we think that this problem comes from the ExtentHeight property of the RadGridView.
As we understand at the beginning, the ExtentHeight property is estimated using the "real" height of each visible rows and the default height for all other rows.
Then when the RadGridView is scrolled, the ExtentHeight property is adjusted with the "real" height of each new visible row.
Is there a way to override the ExtentHeight of the ScrollViewer of the RadGridView ?
Or another way to accomplish this synchronization?
I have added a sample project.
Thanks for your assistance,
Kind regards,
BenoƮt