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

Merging Headers, or Hiding Header and leaving Group Headers?

8 Answers 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Louis
Top achievements
Rank 1
Louis asked on 01 Oct 2013, 09:13 PM
I'm looking for a way to have a single column header display above 2 grid columns, but all of the posts I've been able to find from searching seem out of date. I tried styling the headers to hide the line in between (not a good solution anyway, since I need the text to straddle the two header cells), but couldn't figure out how to make it visually match the existing header cells. I don't need the filtering or sorting capabilities in this grid, so even being able to turn off the header while leaving the ColumnGroup headers on would accomplish what I need, but ShowColumnHeaders turns both off.

Is there a recommended approach to accomplish something like this?

Thanks,
Louis


8 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 02 Oct 2013, 11:01 AM
Hi Louis,

You can take a look at the following example showing how you can achieve MergedColumnHeaders with RadGridView: http://demos.telerik.com/silverlight/#GridView/MergedColumnHeaders

Hope this helps! 

Regards,
Nik
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Louis
Top achievements
Rank 1
answered on 02 Oct 2013, 03:09 PM
Hi Nik, thank you for responding. This is not quite what I need in that I need just the top (group) row visible (Vehicle, Engine, Price), and need to be able to hide the bottom (column header) row hidden (Make, Model, Variant, etc.), as I referred to in my post. Is there a way to hide the column header but leave the group header visible?

Thanks,
Louis
0
Nick
Telerik team
answered on 07 Oct 2013, 08:19 AM
Hello Louis,

Unfortuantely, you cannot show just the MergedColumnHeaders, without the ColumnHeaders, since they are both a part of the HeaderRow as a whole. We are going to put this feature into consideration for our future releases. You can check the release notes to see if it has been introduced.

Hope this helps! 

Regards,
Nik
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Louis
Top achievements
Rank 1
answered on 07 Oct 2013, 03:31 PM
Ok, thanks Nik. Would it be possible to get the right header styling to make 2 column headers look like one? (Similar to what was provided for footers here:)

http://www.telerik.com/community/forums/wpf/gridview/merge-footer-cells.aspx

I've tried coming up with the formatting myself, but have been unable to achieve the right look in the headers.

Thanks again,
Louis
0
Nick
Telerik team
answered on 10 Oct 2013, 12:37 PM
Hello Louis,

The easiest way would be to create a cell template for a column that will contain the values from two properties under a single header.

Hope this helps! 

Regards,
Nik
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Louis
Top achievements
Rank 1
answered on 10 Oct 2013, 02:52 PM
Is there a Telerik component I can use to make the column match the functionality of the entry provided by the GridViewDataColumn? If I use a standard WPF component within the DataTemplate, I end up with an inconsistent look and feel between my templated pair of columns and normal GridViewDataColumns.

Thanks,
Louis
0
Nick
Telerik team
answered on 11 Oct 2013, 11:13 AM
Hi Louis,

Almost all of the controls used in the GridView are part of our bundle. For example, the ComboBoxColumn uses RadComboBox, the DateTimePickerColumn uses RadDateTimePicker, etc. 
The plain view of the cell uses a Text Block while the EditMode is using a TextBox for the most part (SpecificColumns use specific controls, like DateTimePicker and ComboBox).

Hope this helps! 

Regards,
Nik
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Louis
Top achievements
Rank 1
answered on 11 Oct 2013, 07:33 PM
Hi Nik,

Thank you very much, the last part about EditMode pointed me in the right direction. I'm now able to get the look and feel I was looking for using the CellTemplate/CellEditTemplate.

Louis
Tags
GridView
Asked by
Louis
Top achievements
Rank 1
Answers by
Nick
Telerik team
Louis
Top achievements
Rank 1
Share this question
or