or
dataSource.add({
name: output });
However i am not getting any luck, since it's always throwing
Object [object Array] has no method 'add'
Any ideas?
Rgds
that.divTestDropDownList.kendoDropDownList({
dataTextField: "TypeName",
dataValueField: "TypeID",
dataSource: {
transport: {
read: {
dataType: "json",
url: that.options.testUrl,
data: getTestData()
}
}
}
function getTestData() {
return {
testID: that.divOtherDropDownList.val()
}
};
//When I Call that.divPlayListDropDownList.data("kendoDropDownList").dataSource.read();
//in response to another control change the testID does not change
//although I can see it has changed in the console

content: { url: "/api/agent/genealogyupline?agentNumber=" + agentNumber, dataType: "json", template: kendo.template($("#genealogy-upline-template").html()) }<script type="text/x-kendo-template" id="genealogy-upline-template"> <div data-role="grid" data-columns='["Level", "AgentName", "Status"]' data-bind="source: data"></div></script>kendo.data.ObservableArray.prototype.remove = function (value) { var array = this; $.each(array, function (idx, item) { if (item !== undefined) { if (value.data.uid === item.uid) { array.splice(idx, 1); return true; } } }); }onRemove: function (e) { e.data.parent().remove(e);}{ Name: "Top Level", Collection: [ { Name: "First Child", SubCollection: [ { Name: "First Sub Child", onRemove: function (e) { e.data.parent().remove(e); } }, { Name: "Second Sub Child", onRemove: function (e) { e.data.parent().remove(e); } } ] }, { Name: "Second Child", SubCollection: [ { Name: "Third Sub Child", onRemove: function (e) { e.data.parent().remove(e); } }, { Name: "Fourth Sub Child", onRemove: function (e) { e.data.parent().remove(e); } } } ]}<div data-role="listview" data-template="tmpl-demo-first-child" data-bind="source: Collection"></div><script type="text/html" id="tmpl-demo-first-child"> <div> <h2 data-bind="text: Name"></h2> <div data-role="listView" data-template="tmpl-demo-sub-children" data-bind="source: SubCollection"></div> </div></script><script type="text/html" id="tmpl-demo-sub-children"> <div> <div style="width: 120px; float: left; text-align: center; font-size: 1.6em; vertical-align: middle;" data-bind="text: Name, click: onRemove"> </div> </div></script>