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

Is it possible to Filter&Group Client Template Columns?

1 Answer 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Landon
Top achievements
Rank 2
Landon asked on 06 May 2013, 10:31 PM
Hi,

I use the Template Grid Column in a lot of places throughout my app to link to related objects. For example, Contacts can be directly linked to an Account, therefore I allow users to navigate to the Account via the Account Name link in the Grid. 
.Columns(columns =>
        {
            columns.Template(c => c.ContactID)
                .ClientTemplate("<a href=\"/Contacts/Details/#=ContactID#\">#=Name#</a>")
                .Title("Name");
            columns.Template(c => c.Account.AccountName)
                .ClientTemplate("<a href=\"/Accounts/Details/#=AccountID#\">#=Account.AccountName#</a>")
                .Title("Account");
        })
Since both columns have an underlying field that is bound (ContactID & AccountID), is there a way to group/filter on these columns like you would on a regular "Bound" field? 

Thanks,
Landon

1 Answer, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 08 May 2013, 11:39 AM
Hello Landon,

Sorting/Filtering/Grouping is only available for Bound columns. Why don't you use Bound column? You can still specify Template/ClientTemplate when using bound column.

Kind Regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Landon
Top achievements
Rank 2
Answers by
Petur Subev
Telerik team
Share this question
or