Add new row at client side

Aug 25, 2013 at 1:22 AM
Is it possible to add rows in the grid when Add button is clicked?

Need this to dynamically add rows to grid and content to the model.
Aug 25, 2013 at 3:12 PM
The best way to do this is to either return the new table as a partial view as the result of a successful add and replace the existing table with the new data, or make a separate ajax call to retrieve the new table data. If you've already implemented ajax paging and sorting you're more than half way there.
Coordinator
Aug 26, 2013 at 5:50 AM
yes, as grid uses server side rendering you need to render rows at server side, because you can build complex layout in some server variable environment (using RenderValueAs delegate).

Also you can render only 1 row (with created item) and append it to the table.
Oct 1, 2013 at 8:50 AM
i am doing the same thing.I am binding grid with new list.But at that point,jquery of grid has stopped working like filtering,row select.any idea?
Coordinator
Oct 2, 2013 at 4:57 AM
You need to debug your app. Are you append only 1 row or you redraw full grid table?
May 18, 2015 at 5:36 PM
i am using an add button on my page need to add a new editable row on click of add, please suggest how can i achieve this?