Thank you for the provided code snippet.
If I understand the requirements correctly, you need to have a new row added to the Kendo UI Grid once, when it is first loaded. In addition to that, when it is saved, updated or deleted.
To achieve this functionality, I suggest the following steps:
- Get the Kendo UI Grid instance.
- Add a one-time event handler to the dataBound event with the one()
method and call the addRow() method in the handler function. This will stop the infinite loop.
- Add an event handler to the Kendo UI Data Source sync
event and just like in the previous step, call the addRow() method of the Kendo UI Grid
// DataSource configuration
For your convenience, please see a sample runnable demo at:
Should you need further assistance, please clarify any points which I may have misunderstood so I may rectify my response accordingly.
Telerik by Progress