or
columns.Bound(s => s.DateOpened).Template(@<Text></Text>).ClientTemplate("#=kendo.toString(DateOpened,'MM/dd/yyyy')#");columns.Bound(s => s.DateOpened).Template(@<Text></Text>).ClientTemplate("\\#=kendo.toString(DateOpened,'MM/dd/yyyy'\\)#");<script type="text/x-kendo-template" id="SeverityDetailsTemplate"> @(Html.Kendo().Grid<TestViewModel>() .Name("TestGrid") .Columns(columns => { columns.Bound(s => s.CategoryId).Visible(false); columns.Bound(s => s.Name) columns.Bound(s => s.District) columns.Bound(s => s.CategoryName) columns.Bound(s => s.DateOpened).Template(@<Text></Text>).ClientTemplate("\\#=kendo.toString(DateOpened,'MM/dd/yyyy')\\#"); columns.Bound(s => s.DateClosed); columns.Bound(s => s.Description); }) .DataSource(ds => ds .Ajax() .PageSize(15) .Read(read => read.Action("GetTestGridDetails", "Home", new { categoryId = "#=CategoryId#" })) .Events(events => events.Error("grid_errorHandler")) ) .Scrollable(s => s.Enabled(false)) .Pageable(page => page.Refresh(false).PageSizes(new[] { 5, 10, 15, 20 })) .Resizable(r => r.Columns(true)) .Sortable() .ToClientTemplate() )</script>jQuery(function(){ jQuery("#SettingsContextMenu").kendoContextMenu({"openOnClick":true,"alignToAnchor":true,"target":"#GridSettings","showOn":"click"});});<br>
Angelos.Namespace.GridModel = function () { return { Identifier: { editable: false, type: "string" }, Date: { editable: false, type: "date" }, Description: { editable: false, type: "string" }, Priority: { editable: false, type:"number" }, Regarding: { editable: false }, Owner: { editable: false }, Practice: { editable: false, type: "string" } };}var model = [{ field: "Regarding", width: 80, filterable: true, title: "Regarding", template: '#=RegardingUrl#', filterable: { extra: false, field: 'Regarding.Name' } }, { field: "Owner", width: 80, filterable: true, title: "Physician - PCP", template: '#=OwnerUrl#', filterable: { extra: false, field: 'Owner.Name' } }];var prio = { field: "Priority", width: 50, title: "Priority", template: '#= PriorityCodeName #', filterable: { extra: false, field: "Priority.Value", ui: function(element) { element.kendoDropDownList({ dataSource: new kendo.data.DataSource( { data: Tribridge.AlertsView.PriorityLabels }), dataTextField: "text", dataValueField: "value" }); } } };