I am using a kendoComboBox to load the organization list, and I am not able to change the filter to use "contains". It always search by default using "startsWith".
The Kendo document shows it is very easy and straightforward to use the filter, and to add filter: "contains", should do the magic for me. But I've tried many times and it didn't work. Can you help me out?
The difference in my example is that I use cascadeFrom, and I turn on serverFiltering.
var organizationDropDown = $("#organization").kendoComboBox({
autoBind: false,
dataSource: new kendo.data.DataSource({
serverFiltering: true,
transport: {
read: {
url: ATSDashboardWebAPI + "api/GetOrganizations",
data: GetOrgType,
dataType: "json"
}
},
requestEnd: function(e) {
orgsLoaded = true;
}
}),
dataTextField: "OrganizationName",
dataValueField: "OrganizationId",
value: SetDefaultOrganization(),
//filter: { field: "OrganizationName", operator: "contains", value: this["#text"] },
filter: "contains",
cascadeFrom: "orgtype"
}).data("kendoComboBox");
The Kendo document shows it is very easy and straightforward to use the filter, and to add filter: "contains", should do the magic for me. But I've tried many times and it didn't work. Can you help me out?
The difference in my example is that I use cascadeFrom, and I turn on serverFiltering.
var organizationDropDown = $("#organization").kendoComboBox({
autoBind: false,
dataSource: new kendo.data.DataSource({
serverFiltering: true,
transport: {
read: {
url: ATSDashboardWebAPI + "api/GetOrganizations",
data: GetOrgType,
dataType: "json"
}
},
requestEnd: function(e) {
orgsLoaded = true;
}
}),
dataTextField: "OrganizationName",
dataValueField: "OrganizationId",
value: SetDefaultOrganization(),
//filter: { field: "OrganizationName", operator: "contains", value: this["#text"] },
filter: "contains",
cascadeFrom: "orgtype"
}).data("kendoComboBox");