In order to change the content of the data source, the appropriate approach would be to use the setDataSource
method and pass a new instance of the data source containing the new data. Here is a dojo snippet
. The fetch method
is used to fetch data from a remote service as stated in our online documentation.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI