Hi,
Can't figure out how to format a DateTimePicker dynamically in a grid.
Sample:
@(Html.Kendo().Grid<TheViewModel>() .Name("aGrid") .ToolBar(toolbar => toolbar.Create()) .Columns(c => { c.Bound(e => e.ID); c.Bound(e => e.Decimal).Format("{0:n5}"); c.Bound(e => e.Stamp); c.Command(command => { command.Edit(); }); }) .Selectable(p => p.Mode(GridSelectionMode.Single)) .Editable(editable => editable.Mode(GridEditMode.InLine)) .DataSource(dataSource => dataSource .Ajax() .ServerOperation(true) .Model(model => model.Id(e => e.ID)) .Create(create => create.Action("create", "Home")) .Read(read => read.Action("read", "Home")) .Update(update => update.Action("update", "Home")) ))
c.Bound(e => e.Stamp).Format("{0:#=kendo.culture().calendar.patterns.d#}");
Thanks