Hi guys,
I'm having some issues trying to customize a filter (as a dropdownlist ) in a grid.
The result is that if I use "is equal to", the result is always nothing... (no errors, just no records)
while if I use "contains" or "starts with" I get an error like "Object 1 has no method 'toLowerCase'" (that goes deep into kendo's and jquery's js)
here my code
column definition:
dataSource definition
and my function
My guess is that there's a kind of mismatch between the object inside the filter and the in the grid's datasource...
but objects are actually the same!
Where I am doing wrong? thanks!
Fabio
I'm having some issues trying to customize a filter (as a dropdownlist ) in a grid.
The result is that if I use "is equal to", the result is always nothing... (no errors, just no records)
while if I use "contains" or "starts with" I get an error like "Object 1 has no method 'toLowerCase'" (that goes deep into kendo's and jquery's js)
here my code
column definition:
{ field: "Role", title: "ruolo", template : "<span>${Role.Name}</span>", filterable: { ui: RoleFilter, extra: false }, editor: function (container, object) { SetRoleSelect(container, object); } },dataSource definition
fields: { prop1 : {type:"string"} Role: { Id: { type: "int", editable: false }, Name: { type: "string", editable: true, validation: { required: true } }, Descrizione: { type: "string", editable: true, validation: { required: false } }, Visible: { type: "boolean", editable: true }, Rango: { type: "number", editable: true, validation: { required: true, min: 0 } }}RoleFilter: function (element) { element.kendoDropDownList({ dataTextField: "Name", dataValueField: "Id", dataSource: { transport: { read: { url: "my url returning a list of Role object", cache: true } } }, optionLabel: "Select a Role" }); }but objects are actually the same!
Where I am doing wrong? thanks!
Fabio