Scroll bar when expanding hierarchical grid

10 posts, 0 answers
  1. Robert
    Robert avatar
    6 posts
    Member since:
    Jul 2010

    Posted 16 Sep 2011 Link to this post

    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?
  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 19 Sep 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Robert
    Robert avatar
    6 posts
    Member since:
    Jul 2010

    Posted 19 Sep 2011 Link to this post

    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!
  5. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 21 Sep 2011 Link to this post

    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 >>

  6. Robert
    Robert avatar
    6 posts
    Member since:
    Jul 2010

    Posted 21 Sep 2011 Link to this post

    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.

  7. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 21 Sep 2011 Link to this post

    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 >>

  8. scottw
    scottw avatar
    21 posts
    Member since:
    Oct 2010

    Posted 25 May 2012 Link to this post

    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.
  9. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 30 May 2012 Link to this post

    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 >>
  10. Jason
    Jason avatar
    24 posts
    Member since:
    Apr 2011

    Posted 08 Aug 2012 Link to this post

    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
  11. Svett
    Admin
    Svett avatar
    728 posts

    Posted 10 Aug 2012 Link to this post

    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 >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready