5 Answers, 1 is accepted
this in the outer function is the window object, why don't you use the value parameter that you are passing?
In addition, it is worth noting that ds.data() returns an ObservableArray of Observable objects, while ds.data().toJSON() returns an ordinary array of plain objects. You may prefer using the second array, as it contains fewer child objects and only the ones you need.
The above example assumes that the dataSource contains composite data items with multiple fields, e.g. ones that belong to the Kendo UI Grid. Simpler text-value datasources, e.g. for the Kendo UI ComboBox, can be iterated with only one loop:
All the best,
the Telerik team
Hi want to iterate through kendo grid.
If we use var dataSource = grid.dataSource;
dataSource.data(); ----> This will read all data .
But on grid I am also applying filters.so I don't to iterate all data.what i have to do...Any suggestions please
I assume that you need the view() method of the DataSource. It will return only the filtered items on the current page.
Telerik by Progress