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

RadGridView problem using ExpandAllGroups

4 Answers 123 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gabriel
Top achievements
Rank 1
Gabriel asked on 19 Jul 2016, 09:40 PM

Hello,

I'm having trouble to automatically expand all groups within a RadGridView. I set the AutoExpandGroups to true and also call the RadGridView's method ExpandAllGroups(). It does expand all the groups, but it also adds an unwanted white space to my grid, that vanishes after I manually collapse one of the groups.

I also tried to set the GroupRenderMode to Flat. It solves the white space issue, but it adds unwanted information to my groups' headers.

Is there a way to make it work properly?

 

*Telerik UI for WPF version 2015.3.930.45

Thanks in advance.

4 Answers, 1 is accepted

Sort by
0
Gabriel
Top achievements
Rank 1
answered on 20 Jul 2016, 05:59 PM
No one?
0
Stefan
Telerik team
answered on 22 Jul 2016, 09:52 AM
Hi Gabriel,

In general, with both GroupRenderMode's, the GroupHeader should be displaying the value of the property over which the control is grouped. Can you please clarify what is the undesired content being added with Flat GroupRenderMode?

Regards,
Stefan X1
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Gabriel
Top achievements
Rank 1
answered on 22 Jul 2016, 05:58 PM
Hi Stefan, thanks for the reply. Yes, the Flat GroupRenderMode is showing the value of the property, but I don't need it to be displayed. Is there a way to hide it?
0
Stefan
Telerik team
answered on 27 Jul 2016, 06:50 AM
Hello Gabriel,

As stated in my previous reply, the property value should be displayed with both GroupRenderMode's. Since you need to remove it, you can modify the template of GridViewGroupRow and simply remove its ContentPresenter element.

In addition, you may find the Editing Control Templates topic useful on this matter.

Best Regards,
Stefan X1
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Gabriel
Top achievements
Rank 1
Answers by
Gabriel
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or