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

Best Fit with Grouping

3 Answers 98 Views
GridView
This is a migrated thread and some comments may be shown as answers.
erwin
Top achievements
Rank 1
Veteran
Iron
erwin asked on 07 May 2009, 12:24 PM
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

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 07 May 2009, 02:24 PM
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.
0
Richard Slade
Top achievements
Rank 2
answered on 01 Mar 2010, 11:37 AM
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
0
Jack
Telerik team
answered on 02 Mar 2010, 07:34 AM
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.
Tags
GridView
Asked by
erwin
Top achievements
Rank 1
Veteran
Iron
Answers by
Jack
Telerik team
Richard Slade
Top achievements
Rank 2
Share this question
or