I am using mvc to generate my table then I am apply the kendo grid to the table.
In one of the grid cells I am using a kendo dropdownlist. I am having a couple of problems. My script look likes
Problem 1. The datasource is calling my webservice for every dropdown list bound to it. Is it possible to only have the service called once?
Problem 2. the optionLabel value is only applied to 1st dropdownlist and no others. Is this a bug or something wrong with the way I have configured it?
Thank you!
In one of the grid cells I am using a kendo dropdownlist. I am having a couple of problems. My script look likes
$(document).ready(
function
() {
var
dataSource =
new
kendo.data.DataSource({
transport: {
read: {
url:
"/API/store/get"
,
dataType:
"json"
,
data:
function
() {
return
{
businessId: $(
"#BusinessId"
).val()
};
}
}
}
});
$(
"#outlets"
).kendoGrid({ sortable:
true
});
$(
".dropdown"
).kendoDropDownList({
dataTextField:
"StoreName"
,
dataValueField:
"StoreId"
,
optionLabel:
"Select..."
,
dataSource: dataSource
});
Problem 1. The datasource is calling my webservice for every dropdown list bound to it. Is it possible to only have the service called once?
Problem 2. the optionLabel value is only applied to 1st dropdownlist and no others. Is this a bug or something wrong with the way I have configured it?
Thank you!