I have tried several methods to get data in the grid (and may be other controls where datasource can be used).
But my overall experience has been that datasource should not be the only option available to show/refres data in the grid and other controls. We should be able to do that via regular functions. For example, if I am able to receive data using any javascript function in the format of Array [object, object, object] then I expect to be able to
> initialize the grid with this data if the grid is not displayed
> refresh the grid with this content if grid has some old data
> insert this data in the grid or append it somewhere in the grid
But I notice most of the examples are with 'datasource' and its either very hard to configure the datasource or I am not savvy enough to do this.
so if we can work with the kendo objects without using datasource configuration of url/type etc that would be useful. I would like functions such as init(Array) refresh(Array) or something like that if possible.
-Piyush
But my overall experience has been that datasource should not be the only option available to show/refres data in the grid and other controls. We should be able to do that via regular functions. For example, if I am able to receive data using any javascript function in the format of Array [object, object, object] then I expect to be able to
> initialize the grid with this data if the grid is not displayed
> refresh the grid with this content if grid has some old data
> insert this data in the grid or append it somewhere in the grid
But I notice most of the examples are with 'datasource' and its either very hard to configure the datasource or I am not savvy enough to do this.
so if we can work with the kendo objects without using datasource configuration of url/type etc that would be useful. I would like functions such as init(Array) refresh(Array) or something like that if possible.
-Piyush