Hi, How to bind grid with property is boolean but i want to bind is image .
I follow http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/grid/faq and do it
but i result is not to me need.
I follow http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/grid/faq and do it
but i result is not to me need.
columns.Template(p => p.IsPublished).ClientTemplate(
"# if(IsPublished.GetValueOrDefault(false)) { #" +
"<
img
src
=
'"+ Url.Content("~/Images/icon_true.gif") +"'
alt
=
'#= IsPublished #'
/>"+
"# } else { #" +
"<
img
src
=
'"+ Url.Content("~/Images/false-icon.png") +"'
alt
=
'#= IsPublished #'
/>"+
"# } #"
);