I need to filter the countries that are already selected. I have written the code from the below link.
http://jsbin.com/oqucix/4
When i defined the datasource dynamically i am not getting the records.
var countriesDS = new kendo.data.DataSource({
transport: {
read: {
url : "/Home/Countries",
type: "POST",
dataType: "json"
}
},
schema: {
model: {
id: "id",
fields: {
id : { type: "id" },
name: { type: "string" }
}
}
}
});
Then i will able to redirect to that action method and retrieve the values but in autocomplete i am not getting records. Any help is appreciated
This is the
DataSourceandAutoCompletedefinition:and this is how Countries list should be returned by the server.