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

How to use 2 different values on a client template?

1 Answer 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
koa
Top achievements
Rank 1
koa asked on 07 Dec 2012, 01:39 PM
Here is a snippet:
columns.Bound(p => p.URL).Title("Url").Visible(false);
columns.Template(p => p.TRACKINGNUMBER).ClientTemplate(
    "<a href='#= URL #'>#= TRACKINGNUMBER #</a>"
    ).Title("Tracking Number");
The above above client template ignores the URL value and simply displays the tracking number has a regular text field.




1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 10 Dec 2012, 04:39 PM
Hi,

 Your code looks ok and should work. Could it be that your grid is not ajax bound initially? Client templates are applied only during ajax binding. You can paste the whole grid configuration.

Regards,
Atanas Korchev
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
koa
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or