or
@(Html.Kendo().NumericTextBoxFor(m => m.Number) .Name("ntb") .Format("n0") .Min(1) .Max(50))@(Html.Kendo().Grid(Model) .Name("Grid") .HtmlAttributes(new { style = "height: 500px" }) .Columns(columns => { columns.Bound(p => p.ImportTypeName); columns.Bound(p => p.ImportedRecordCount); columns.Bound(p => p.FeedRecordCount); columns.Bound(p => p.ErrorCount).ClientTemplate("# if (ErrorCount > 0) { #" + "Yes" + "# } else { #" + "No" + "#}#"); columns.Bound(p => p.WarningCount).Template( @<text><a href="@Url.Content("~/client/view/warnings/" + @item.ImportTypeID)">@item.WarningCount</a></text>); columns.Bound(p => p.CompletedOn); }) .Sortable() .Scrollable() .Filterable())$("#Window").data("kendoWindow").open();@(Html.Kendo().Grid(Model.GridRows) //... .DataSource(dataSource => { dataSource.Local() .Model(model => model.Id(s => s.Id)) .Sort(sort => sort.Add(s => s.Name)); }))I am using the MVC Helpers and would like to customize the generated Javascript - in particular, the js class name that is used.
For example, if I do something like this:
@(Html.Kendo().Grid<ResourceViewModel>()
.Name("Grid")
.BindTo(Model.Resources)
.YadaYadaYada(...)
)
... then it generates JavaScript for me like this, which creates a kendoGrid in JS:
jQuery(function(){jQuery("#Grid").kendoGrid({ ... yada yada yada ...
I would like to change the kendoGrid class above to my own custom Widget class. So instead of kendoGrid, I have created a kendoCustomGrid which I would like to have generated instead.
What's the best way to do this?