Hello...
I have a Ajax grid, like that :
The javascript generated included the datasource type 'aspnetmvc-ajax':
I dont want that. I´d like to takeoff that type.
How can I change/takeoff the automatic type generated?
Ty
I have a Ajax grid, like that :
@(Html.Kendo().Grid<EmployeeVM>().Name(
"grid"
)
.Columns(columns => {
columns.Bound(model => model.Id).Hidden(
true
);
columns.Bound(model => model.First);
columns.Bound(model => model.Email);
})
.Groupable(y => y.Enabled(
true
))
.Sortable(x => x.SortMode(GridSortMode.MultipleColumn))
.Pageable(x => x.PageSizes(
true
).Messages(messages => messages.Empty(
""
)))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(10)
.Model(model => model.Id(p => p.Id))
.Read(read => read.Action(
"List"
,
"Employee"
).Type(HttpVerbs.Post)))
The javascript generated included the datasource type 'aspnetmvc-ajax':
...
"dataSource"
:{
"type"
:(function(){
if
(kendo.data.transports[
'aspnetmvc-ajax'
]){
return
'aspnetmvc-ajax'
;}
else
{
throw
new
Error(
'The kendo.aspnetmvc.min.js script is not included.'
);}})()
...
I dont want that. I´d like to takeoff that type.
How can I change/takeoff the automatic type generated?
Ty