Best Fit with Grouping

4 posts, 0 answers
  1. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 07 May 2009 Link to this post

    When I Use BestFit on a grouped grid that has only few columns, the columns get resized to fit the header (since no contents are visible after databind due to the grouping).
    However, when Grouping is enabled, the group header/summary should be shown in full if there is enough space.
    What can I do to ensure that the coulms are resized wide enough to ensure that the group headers are fully visible.

    Regards
    Erwin
  2. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 07 May 2009 Link to this post

    Hello erwin,

    Thank you for this question.

    This is an interesting case. Currently RadGridView doesn't support BestFit for the group header row. We will consider implementing this functionality in one of our future versions.

    You have two options to solve this issue:

    1. Set the AutoSizeColumnsMode property of MasterGridViewTemplate to Fill. In this case, the columns will occupy the whole RadGridView.

    2. Change the column width manually by using the Width property.

    I hope this helps. If you have further questions, I will be glad to help.

    Sincerely yours,
    Jack
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 01 Mar 2010 Link to this post

    Hi,
    Is this addressed in any of the new releases? I'd alos like to BestFit a sub grouped cell but can't find a sensible way to do it.
    Thanks
    richard
  5. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 02 Mar 2010 Link to this post

    Hello Richard Slade,

    Currently best fit option works only for data cells, it can't be used to calculate and set the optimal width for a group header row. However, you can call BestFitColumns method when handling GroupExpanded event. Please find the detailed answer to your question in your previous ticket (ID 285050).

    Kind regards,
    Jack
    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.
Back to Top