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

Scroll bar when expanding hierarchical grid

9 Answers 515 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 16 Sep 2011, 08:21 PM
I have a nested grid with about 300 rows; when I expand this grid from its parent, the vertical scroll bar expands to take up almost the full height of the window, and as I scroll down, the scroll bar becomes incrementally smaller.  This make it very time-consuming to scroll all the way down to the bottom, as it has to be done in multiple steps.  However, if the number of rows in the nested grid is < 200, the scroll bar is of normal size, and scrolling is easy and quick.

Is there any way to remedy the behavior for larger nested grids?

9 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 19 Sep 2011, 09:12 AM
Hello Robert,

Could you please try settings UseScrollbarsInHierarchy to false?

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
Robert
Top achievements
Rank 1
answered on 19 Sep 2011, 02:27 PM
It was already set to False, so I set it to True.  This give me less horizontal space, but it solves the giant scroll bar problem and it also keeps the headers of the nested grid visible when scrolling, so I'll go with that option.

Thanks for the suggestion!
0
Jack
Telerik team
answered on 21 Sep 2011, 11:14 AM
Hi Robert,

I am glad to hear that you have found a solution for this issue. 

Indeed, setting the the UseScrollbarsInHierarchy property to false solves the issue. When this property is set to true RadGridView calculates the scrollbar height dynamically just like in MS Excel and this causes the thumb to change its size.

If you have any further questions, do not hesitate to ask.
 
Regards,
Jack
the Telerik team

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

0
Robert
Top achievements
Rank 1
answered on 21 Sep 2011, 02:15 PM
That's not the behavior I'm seeing.  When I set  UseScrollbarsInHierarchy to false, the nested grid shares the same scrollbar as its parent, and it resizes incorrectly when I expand the child grid.  When I set UseScrollbarsInHierarchy to true, the nested grid has its own independent scrollbar which is sized correctly.

I'm using version 2011.2 of the controls.

0
Jack
Telerik team
answered on 21 Sep 2011, 02:48 PM
Hello Robert, yes, you are correct. It was my mistake, I meant to say true instead of false.

All the best,
Jack
the Telerik team

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

0
scottw
Top achievements
Rank 1
answered on 25 May 2012, 06:57 PM
I am having the same problem, but setting UseScrollbarsInHierarchy to true or false does nothing to improve the situation.

When creating the hierarchical grid and databinding, I would have expected the scroll bar for the whole grid would be sized appropriately. Setting UseScrollbarsInHierarchy to true doesn't fix this scroll bar size, it still is var larger than it should be, and it shrinks when you scroll down, plus it adds an ugly second scroll bar for each group, which in our case is bad because we are using the grid in a very narrow panel.
0
Jack
Telerik team
answered on 30 May 2012, 12:19 PM
Hello Scott,

Like I said before in this thread RadGridView scrollbar behaves like in MS Excel. It changes its maximum value dynamically. We did this in order to improve RadGridView performance. Please open a new support ticket and send us your project. We will investigate your scenario in detail and we will try to find the best option.

I am looking forward to your project.
 
Kind regards,
Jack
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Jason
Top achievements
Rank 1
answered on 08 Aug 2012, 03:37 PM
Any word on this? I'm having the same issue. When I expand the radgrid and scroll down, the scroll bar changes size as described by the other user. Setting the UseScrollbarsInHierarchyto true or false doesn't solve the issue.

Thanks,
Jason
0
Svett
Telerik team
answered on 10 Aug 2012, 12:11 PM
Hi Jason,

The RadGridView scrolling behaves in the same manner as my colleague Jack illustrated. If the scroll bar does not recalculate its size depending on its position and content, it seems that you have specific issue. In this case, I recommend you opening a new support ticket where you can enclose a sample project that demonstrates your scenario.

Kind regards,
Svett
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Robert
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Robert
Top achievements
Rank 1
Jack
Telerik team
scottw
Top achievements
Rank 1
Jason
Top achievements
Rank 1
Svett
Telerik team
Share this question
or