How do I programatically put telerik rad grid in "add new" mode on page load

Todd picture Todd · Nov 24, 2009 · Viewed 20k times · Source

Seems like this should be easy but I must just be missing something... I have a Telerik RadGrid on a page that allows inline editing. How do I programatically put the grid into edit mode to insert a new row into the grid. When the page loads I would like show the existing data and also display 1 empty row that a user can easily type into to add a new record to the table. (I don't want them to have to push the add new button)

Answer

Todd picture Todd · Feb 19, 2010

Found the answer while back.... updating this in case others need it

RadGrid1.MasterTableView.IsItemInserted = true;
RadGrid1.Rebind();