or
@(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?
columns.Bound(p => p.attdate).Title("Att Date").Format("{0:d}");<script type="text/javascript"> //set current to the "en-GB" culture script kendo.culture("en-GB");</script>