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

[Solved] GroupDescriptor when member is empty

1 Answer 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
NS
Top achievements
Rank 1
NS asked on 02 Sep 2009, 03:06 PM
Hi,
I have a case when the member value of a GroupDescriptor is null in the database.
The grid grouping header then displays an empty message.

Is it possible to display an alternate grouping header text when the member is null or empty ?

Thanks,
Nicolas

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 07 Sep 2009, 08:41 AM
Hi NS,

I have prepared a small sample that illustrates how to handle null values in Group headers.
To see it in action please run the project attached and group by FirstName.

We have redefined the group template here and replaced the header binding with custom binding using IValueConverter. The converter checks for  null value and returns the appropriate header text.

Kind regards,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
NS
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or