Hi,
I have a Kendo.Grid being loaded into a Kendo.Window. The Grid is showing up with the correct data, but the boolean column 'Printed' is displayed as a checkbox (see screenshot), when I want it to be either 'Y' or 'N'. Ideally, I want to to be a green TICK or nothing, but I'm just trying to get anything to display other than the checkbox. I have found many examples on using the .ClientTemplate and have added this to the 'Printed' column according to the examples from Telerik, but it just is not working.
Below is the Grid definition.
@{ Layout = null; }
@model IEnumerable<
CBECloudBO2.ViewModels.LabelTypeForChangesViewModel
>
@(Html.Kendo().Grid(Model)
.Name("plulabelsgrid")
.HtmlAttributes(new { style = "height: 230px;" })
.Columns(columns =>
{
columns.Bound(p => p.Id).Hidden();
columns.Bound(p => p.ReportTemplate).Hidden();
columns.Bound(p => p.Description).Title("Label");
columns.Bound(p => p.LabelsCount).Title("Count").Width(70);
columns.Bound(p => p.NumberLabelsOnPage).Title("Labels per Page").Width(120);
columns.Bound(p => p.Printed).Title("Printed").Width(80).ClientTemplate("#= Printed ? 'Y' : 'N' #");
columns.Command(command => command.Custom("Print").Click("printLabel")).Width(85);
})
.Scrollable()
.DataSource(datasource => datasource
.Ajax()
)
)
Can anyone spot anything in the above code or offer me suggestions?
Regards,
Shawn