I am unable to bind an array of JSON objects to the RadDropDownList dataSource property.
In version 2012.1.0611 it was working.
I had the following HTML defined:
<input id="taskType"
data-win-control="Telerik.UI.RadDropDownList"
data-win-options='{
dataTextField: "title",
dataValueField: "id",
}' />
In the JavaScript file, I initialized the data source with the following:
taskType.winControl.dataSource = [{ id: 1, title: "Scenerio" }, { id: 2, title: "Change Request" }];
I have upgraded to 2012.1.711, and this has stopped working.
I have tried the following:
taskType.winControl._widget.dataSource = [{ id: 1, title: "Scenerio" }, { id: 2, title: "Change Request" }];
and this:
var list = new WinJS.Binding.List();
list.push({ id: 1, title: "Scenerio" });
list.push({ id: 2, title: "Change Request" });
taskType.winControl._widget.dataSource = list;
But they don't work.
Please let me know what I need to do to bind the dataSource correctly.
Regards,
John DeVight