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.
Example:
columns.Bound(x => x.UserName)
.ClientTemplate("<a href='" + Url.Admin().Account() + "/#= Id#/edit'>#= UserName #</a>")
.Width(300);
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?
Regards,
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.