Hi,
I have a Grid where i group by the Year and Month from a DateTime (see attached Image - Table1), but without defining the columns and using the Title they display like so (see Table2 image):
- "TimesheetWorkDateMonthYear.Year: 2017" instead of "Year: 2017"
- "TimesheetWorkDateMonthYear.Month: Jul" instead of "Month: Jul"
How can i make them display properly without showing the Columns or even adding them?
columns.Bound(o => o.TimesheetWorkDateMonthYear.Year).Width(
100
).Title(
"Year"
).ClientTemplate(
"#: kendo.toString(TimesheetWorkDateMonthYear, 'yyyy') #"
);
columns.Bound(o => o.TimesheetWorkDateMonthYear.Month).Width(
100
).Title(
"Month"
).ClientTemplate(
"#: kendo.toString(TimesheetWorkDateMonthYear, 'MMM') #"
);
I've tried adding '.Visable(false)' to the Columns but this doesn't work also.