or
.AllDayEventTemplate( "<div class='asset-task' style='color: black; background-color: #= Color #' title='#= title # \nAsset: #= AssetName # \nOwner: #= OwnerName #'>" + "<strong>#= title #</strong>" + "<p>" + "<strong>Asset: </strong>#= AssetName #" + "<br>" + "<strong>Owner: </strong>#= OwnerName #" + "</p>" + "</div>")@(Html.Kendo().Grid<LocationViewModel>() .Name("locationGrid_#=CustomerID#") .Columns(columns => { columns.Bound(c => c.Name).Title("Location Name"); columns.Bound(c => c.Description).Title("Description"); columns.Bound(c => c.SummaryDescription).Title("Summary Description"); columns.Bound(c => c.Environment).Title("Environment Name"); //.ClientTemplate("\\#: Environment.Name \\#") columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200); }) .DataSource(dataSource => dataSource .Ajax() .PageSize(10) .Read(read => read.Action("GetLocations", "Home", new { customerID = "#=CustomerID#" })) .Create(create => create.Action("AddLocation", "Home", new { id = "#=CustomerID#" })) .Update(update => update.Action("UpdateLocation", "Home")) .Destroy(update => update.Action("DeleteLocation", "Home")) .Model(model => { model.Id(m => m.LocationID); }) .Events(e => e.Error(@<text>function(e) { onError(e,"locationGrid_#=CustomerID#", "locationErrors") }</text>)) ) .ToolBar(toolbar => toolbar.Create().Text("Add Location")) .Editable(editable => editable.Mode(GridEditMode.InLine)) .Pageable() .Sortable() .ToClientTemplate() )public class LocationViewModel { public Guid? LocationID { get; set; } [Required] [StringLength(256)] public string Name { get; set; } [StringLength(1024)] public string Description { get; set; } public int TestPointNo { get; set; } public MarketViewModel Market { get; set; } [UIHint("EnvironmentEditor")] public EnvironmentViewModel Environment { get; set; } public int TimeZoneGmtOffset { get; set; } public double Latitude { get; set; } public double Longitude { get; set; } public double HAE { get; set; } public bool Deleted { get; set; } [StringLength(512)] public string SummaryDescription { get; set; } }@(Html.Kendo().DropDownList() .Name("EnvironmentViewModel") .DataValueField("EnvironmentID") .DataTextField("Name") .DataSource(d => { d.Read(r => r.Action("GetEnvironmentsJsonResult", "Home").Data("getCustomerID()")).ServerFiltering(true); } ) .SelectedIndex(0))