user585440
user585440

Reputation:

How to convert ClientTemplate from Telerik MVC to Kendo

I have a Telerik MVC Grid like

<% Html.Telerik().Grid<Model>()
.Name("Athletes")
...
.Columns(columns =>
{
    columns.Bound(a => a.IsNew)
         .ClientTemplate("<span <#= IsNew ? \"class='t-icon t-update'\" : \"\" #>></span>")
...

What ClientTemplate does is to display an icon of yes checkmark in the column of grid if IsNew is true.

Now I want to make above code work in Kendo Grid and ClientTemplate. I am not sure how to do it. "t-icon" and "t-update" look like icon image but I can not find them in the project. I need help on this. Thanks.

Upvotes: 0

Views: 244

Answers (1)

Lars H&#246;ppner
Lars H&#246;ppner

Reputation: 18402

Inspect the CSS of the span element - the icons are most likely part of a sprite. (background:url with offsets)

Upvotes: 0

Related Questions