Hi, I'm trying to populate a dropdown list using XML that was retrieved from a web service which I pass two arguments to. The list seems to be displaying the right number of items, however they all appear as "undefined". Here is my code:
Here is the XML that is returned by the web service:
Any help would be appreciated!
$("#dropdownbox").kendoDropDownList({ dataSource: new kendo.data.DataSource({ dataTextField: "name", dataValueField: "id", transport: { read: { url: "WebService.asmx/GetDates", data: { startDate: "2010/10/20", endDate: "2012/10/20" } } }, schema: { type: "xml", data: "NewDataSet/dates", model: { fields: { building_name: "name/text()", building_id: "id/text()" } } } }) });Here is the XML that is returned by the web service:
<NewDataSet> <dates> <id>4</id> <name>TestItem1</name> </dates> <dates> <id>5</id> <name>TestItem2</name> </dates></NewDataSet>Any help would be appreciated!