@using Kendo.Mvc.Extensions; @using Kendo.Mvc.UI; @using System.Web.Script.Serialization; @model IList @{ object attributes; if (ViewBag.Disabled == true) { attributes = new { disabled = "disabled" }; } else { attributes = new { }; } string GridID = Guid.NewGuid().ToString(); string toolBarId = Guid.NewGuid().ToString(); string dataId = Guid.NewGuid().ToString(); var json = @Html.Raw((new JavaScriptSerializer()).Serialize(Model)); }
Add link...