Last Updated: 25 Mar 2024 13:34 by ADMIN
Created on: 19 Jul 2022 13:28
Category: UI for ASP.NET MVC
Type: Feature Request
Grid ClientTemplate Feature should also be available in TreeList

I'm using the ClientTemplate-Feature to render buttons for CRUD-actions in grids. For one entity I have to use a TreeList instead of a Grid due to parent-child relations. It would be great if I could use the same templates I use for the grid for the treelist as well.


columns.Bound(x => x.UserName)
        .ClientTemplate("<a href='" + Url.Admin().Account() + "/#= Id#/edit'>#= UserName #</a>")
1 comment
Ivan Danchev
Posted on: 26 Jul 2022 09:10

Hello Marcel,

The TreeList has the Template option, which you can use to display a link in a column:

columns.Add().Field(e => e.UserName).Template("<a href='" + Url.Admin().Account() + "/#= Id#/edit'>#= UserName #</a>").Width(300);

Is using that option applicable to your scenario?

Ivan Danchev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.