This question is locked. New answers and comments are not allowed.
Hi folks,
first of all thanks for this great product. It's really fun to create apps with Kendo Mobile.
I have a question regarding reloading data into a dataSource.
Let me explain the current situation.
We have a hierarchial date e.g. several manufacturers have several have several car models, each model exist in different types etc.
This sounds perfect for a HierarchicalDataSource, right?
But here comes the point:
Currently the remote backend provides me always just a part of the data. E.g.
1. Show a view with all available manufacturers by calling e.g. http://example.com/manufacturers
2. Now the user can select one manufacturer and will be forwarded to another view where only the models of the currently selected manufacturer will be loaded.
The url is e.g. http://example.com/cars/1 to fetch all cars of manufacturer with id 1.
There is a DataSource in the cars view which is created everytime the view is loaded (init event). This is basically ok, but the data is loaded everytime the view is accessed although we already have loaded the data from the server.
I hope I made myself clear enough.
So is there somehow a way to reload data into a DataSource that already contains data from a remote service? Can the add() method if the DataSource be used for something like this?
Otherwise I may have to discuss with my colleagues if it is possible to restructure the backend.
Regards and thanks for your support!!
first of all thanks for this great product. It's really fun to create apps with Kendo Mobile.
I have a question regarding reloading data into a dataSource.
Let me explain the current situation.
We have a hierarchial date e.g. several manufacturers have several have several car models, each model exist in different types etc.
This sounds perfect for a HierarchicalDataSource, right?
But here comes the point:
Currently the remote backend provides me always just a part of the data. E.g.
1. Show a view with all available manufacturers by calling e.g. http://example.com/manufacturers
2. Now the user can select one manufacturer and will be forwarded to another view where only the models of the currently selected manufacturer will be loaded.
The url is e.g. http://example.com/cars/1 to fetch all cars of manufacturer with id 1.
There is a DataSource in the cars view which is created everytime the view is loaded (init event). This is basically ok, but the data is loaded everytime the view is accessed although we already have loaded the data from the server.
I hope I made myself clear enough.
So is there somehow a way to reload data into a DataSource that already contains data from a remote service? Can the add() method if the DataSource be used for something like this?
Otherwise I may have to discuss with my colleagues if it is possible to restructure the backend.
Regards and thanks for your support!!