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

[Solved] GroupByHeader takes on FieldName when HeaderText is empty String

1 Answer 154 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason Divis
Top achievements
Rank 1
Jason Divis asked on 23 Feb 2010, 10:03 PM
Hey Telerik, want to start out by stating that you guys have some great components here.

I'm using the RadGrid, and I want to change what is displayed in the grouping header. I see that if I put something in the HeaderText, that value, plus whatever I've put in the FormatString is concatenated together to giv ehte complete header.

What I would really like to do is use just the FormatString value itself for the header, but when I set gridGroupByField.HeaderText = "", I see that the gridGroupByField.FieldName is pre-pended to the grouping header, along with the FormatString value.

Trying to set the FieldName to "" results in an exception: Field definition is not valid. Field name cannot be null or empty.

Is there anyway to only use the FormatString in the Grouping Header?

Thanks again for the great controls. Countless hours saved not having to develop and maintain them.

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 24 Feb 2010, 10:00 AM
Hi Jason,

Please take a look at the link below on how to customize the GridGroupHeaderItem.

Hope this helps.Do let me know if you have any more queries.


Thanks,
Princy
Tags
Grid
Asked by
Jason Divis
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or