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

[Solved] Control the Grouping feature

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Narendra
Top achievements
Rank 1
Narendra asked on 23 Jun 2011, 03:24 PM
Hi Telerik,

I needed help on customizing  the grouping feature. Basically when I add a column Grouping it shows up as a separate row in the table which is of the format ColumnName : ColumnValue

I was wondering if there is a way to not have this default message and do something like rowspan = 5 if the group has 5 sub columns in it 

  .Groupable(settings => settings.Groups(groups => groups.Add(o => o.ElementName)))

Also I wanted to get rid of the Header which says unGroup 

Any help will be appreciated 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 24 Jun 2011, 07:21 AM
Hello Narendra,

The Grid group headers already have a colspan attribute. If you want to customize the row content, you can use a (Client)GroupHeaderTemplate:

http://demos.telerik.com/aspnet-mvc/grid/aggregatesserverside

http://demos.telerik.com/aspnet-mvc/grid/aggregatesajax


In order to hide the UnGroup button, you can use CSS:

.t-grouping-header  .t-group-delete
{
       display: none;
}


Kind regards,
Dimo
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
Grid
Asked by
Narendra
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or