Hi,
I implemented kendo grid for angular for the small POC I am making.
I have standard CRUD grid without much logic - so I need to be able to add data, change it and delete it.
I was following example from the page and I have the grid, bound to remote data (observable), however after I click ADD and finish adding data in the row, click Save, row disappears.
Example provided in documentation which reads data completely again is not a good case for me, because service can take sec or two to finish and I don't need to reload all the data.
Same goes with remove action (only data is not removed).
I have four separate service methods for CRUD.
Am I missing some property or configuration (or have a logic flaw) to tell the grid to preserve row after adding it, and to remove it on remove?
Thank you
Vedad
Hi Vedad,
I will suggest an approach based on the provided information.
Generally, when doing CRUD operations, the developer can create the new record and update the collection that the Grid currently uses. Then send a request to the server to reflect on the newly added record. Another option would be to show a loading indicator while the server updates the newly added records and when it is available to display it in the Grid and remove the indicator.
There are few approaches that can be taken, but it really depends on the application requirements and how the Grid would need to act.
If further assistance is required on this matter, could you share a runnable example, so that I am able to inspect the implementation and provide some additional suggestions and feedback.
Regards,
Yanmario
Progress Telerik
Hi Yanmario,
thank you very much on your response.
I understand what you mean and I am aware that I can manipulate data manually, but I was expecting that if I edit row inline in grid, and do the save, grid would keep updated values, so I don't have to update dataset manually. JQuery grid did this through datasource binding.
But, i made my workarounds and it is serving its purpose.
Thanks
Regards
Vedad