or
@(Html.Kendo().Grid<VehicleGroupGridRow>() .Name("VehicleGroupGrid") .Columns(column => { column.Bound(p => p.Title); column.Command(command => { command.Edit(); command.Destroy(); command.Custom("View").Click("onViewClick"); }); }) .ToolBar(commands => commands.Create()) .Editable(editable => editable.Mode(Kendo.Mvc.UI.GridEditMode.InLine)) .Sortable() .DataSource(dataSource => dataSource .Ajax() .Events(events => events.Error("error_handler")) .Model(model => model.Id(p => p.Id)) .Create(create => create.Action("CreateVehicleGroup", "VehicleGroup")) .Read(read => read.Action("GetVehicleGroups", "VehicleGroup")) .Update(update => update.Action("UpdateVehicleGroup", "VehicleGroup")) .Destroy(destroy => destroy.Action("DestroyVehicleGroup", "VehicleGroup")) ) )<script type="text/javascript"> function onViewClick(e) { e.preventDefault(); var dataItem = this.dataItem($(e.currentTarget).closest("tr")); var actionUrl = "@Url.Action("Details", "VehicleGroup", new { Id = "PLACEHOLDER" })"; window.location = actionUrl.replace('PLACEHOLDER',dataItem.Id); }</script><div class="CintTxtBlockWide"> <span id="openEmail" class="CintSlide"><img src="../../Images/email.jpg" />Keep yours email in the cloud</span> <span id="openBox" class="CintSlide"><img src="../../Images/file.jpg" />Your Files in the cloud</span> <span id="openDesk" class="CintSlide"><img src="../../Images/desktop.jpg" />Your Desktop in the cloud</span> @(Html.Kendo().Window() .Name("window") .Content(@<text> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris venenatis, sem sed semper fermentum, leo magna egestas felis, eu dictum nunc nisi eget massa. Nulla diam felis, condimentum sed commodo a, rutrum at metus. Vestibulum consequat volutpat dapibus. Pellentesque vitae sollicitudin nulla. Suspendisse sapien lectus, convallis at vestibulum non, semper sed odio. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris mauris diam, dictum vitae vestibulum non, iaculis id nisi. </p> <span id="closeWindow">Close</span> </text>) .Width(420) .Height(440) ) </div><script> $(document).ready(function () { var desk = $("#window"); $("#openEmail").click(function (e) { desk.data("kendoWindow").open(); }); $("#openBox").click(function (e) { desk.data("kendoWindow").open(); }); $("#openDesk").click(function (e) { desk.data("kendoWindow").open(); }); $("#closeWindow").click(function (e) { desk.data("kendoWindow").close(); }); });</script>NumericTextBoxFor(model => model.FirstName)NumericTextBoxFor(model => model.Person.FirstName)schema: { model: { id: "Id", fields: { ACurrencyField: { editable: true, nullable: true }, } } }
public ActionResult Index([DataSourceRequest(Prefix = "Grid")] DataSourceRequest request) { if (request.PageSize == 0) { request.PageSize = 10; } MvcApplication3.psr.ProductServiceClient psrc = new MvcApplication3.psr.ProductServiceClient(); ResultData results = psrc.KendoGridQuery(DataSourceRequest); ViewData["total"] = results.Count; return View(results.Data); }