When creating a DataSource from an array, I can iterate the strings.
Then I add a new string to the datasource.
As a result, three strings and one object are returned from the datasource.
What should be added, so that the loop returns four strings?
Michael G. Schneider
var arr = ["one", "two", "three"];var datasource = new kendo.data.DataSource({ data: arr});datasource.read();var data1 = datasource.data();for (var i = 0; i < data1.length; i++) { alert(data1[i]);}datasource.add("four");var data2 = datasource.data();for (var i = 0; i < data2.length; i++) { alert(data2[i]);}What should be added, so that the loop returns four strings?
Michael G. Schneider