I have a grid with an image column to show if there is an error or not. If this is an error, I would like to display a tooltip with a message when the user hovers over the image. The message would be from c.ErrorMessage.
Is there a sample on how to do this? I searched and could not find one.
Is there a sample on how to do this? I searched and could not find one.
@(Html.Kendo().Grid<
GridLineItem
>().Name("grid").Columns(columns =>
{
columns.Bound(c => c.ReportName).Title("Status").ClientTemplate(
"# if (HasError == true) { #" +
"<
img
src
=
'" + Url.Content("Images/error.png") + "'
/>" +
"# } else { #" +
"<
img
src
=
'" + Url.Content("Images/success.png") + "'
/>" +
"# } #"
);
)