I have this HTML:
<select data-role="dropdownlist", data-bind="value: xxx", data-text-field="field1", data-value-field="field2", data-source='{"transport":{"read":"my-url"}}' />
Then I bind this template.
But the data-source is not used.
Found an issue in the function kendo.initWidget.
Inside that function there is the code:
dataSource does here indeed have the transport object I defined in the attributes. But window[dataSource] is undefined.
Seems to me that this line of code must be:
When I change it this way, the dropdownlist works!
So not sure if this is a bug or that I am doing something wrong.
Regards, Jaap
<select data-role="dropdownlist", data-bind="value: xxx", data-text-field="field1", data-value-field="field2", data-source='{"transport":{"read":"my-url"}}' />
Then I bind this template.
But the data-source is not used.
Found an issue in the function kendo.initWidget.
Inside that function there is the code:
if
(dataSource) {
options[
"dataSource"
] =
window[dataSource];
}
dataSource does here indeed have the transport object I defined in the attributes. But window[dataSource] is undefined.
Seems to me that this line of code must be:
if
(dataSource) {
options[
"dataSource"
] = dataSource;
}
When I change it this way, the dropdownlist works!
So not sure if this is a bug or that I am doing something wrong.
Regards, Jaap