Something very strange is happening when I am using the filter of KendoUI Grid. My grid is very simple and the definition is like this:
var cols = [];
cols[0] = { field: 'name', title: 'Nome', width: "65%" };
cols[1] = { field: 'eMail', title: 'eMail', width: "20%" };
cols[2] = { field: 'city', title: 'Cidade', width: "15%" };var cfgGrid = { dataSource: dsPersons,
batch: false,
change: onSelectedRow,
selectable: "row",
resizable: true,
scrollable: true,
sortable: { mode: 'multiple', allowUnsort: true },
filterable: true,
editable: false,
pageable: { numeric: false },
columns: cols };gridPessoas = null;
The grid is displayed correctly in url:
gridPessoas = $("#gridElem").kendoGrid(cfgGrid).data("kendoGrid");
But when I try to filter any column kendoUI redirects to a page:
http://localhost:50409/undefined?
The Datasource was defined like that:
var ds = { data: persons,
schema: model,
filter: {},
serverPaging: false,
serverFiltering: false,
pageSize: 12 };
The grid is ok and the error only occurs when I define a filter value and click on the filter button.
This is an ASP.NET MVC 4 site. I cannot imagine what is going on.
Can you help me ???
Thanks in advance