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

How to add Filter, Group and Sort for Column with CellTemplate

2 Answers 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
swarmttied
Top achievements
Rank 1
swarmttied asked on 25 Jan 2012, 11:58 PM
If a column has a celltemplate defined, its Filter, Sort and Group capability are gone. I'm sure there's a template perhaps that I can define to bring them back but I'm hoping it's more straightforward than that. If you're wondering why I use CellTemplate, it's because I need a CheckBox that uses a Command.

How do I go about this predicament?

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 26 Jan 2012, 08:04 AM
Hi,

 The grid filtering sorting, grouping, etc. depends on DataMemberBinding (GridViewDataColumn) not on CellTemplate. If you have DataMemberBinding set no matter if you have or not CellTemplate the column filtering, sorting, grouping, etc. will work as expected. 

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
swarmttied
Top achievements
Rank 1
answered on 26 Jan 2012, 08:35 PM
It's a great help. Thanks!
Tags
GridView
Asked by
swarmttied
Top achievements
Rank 1
Answers by
Vlad
Telerik team
swarmttied
Top achievements
Rank 1
Share this question
or