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

If you need show inset form always you can use next:

protected void NeedDataSource(object sender, GridNeedDataSourceEventArgs e) {
  parametersGrid.DataSource = data;
  parametersGrid.MasterTableView.IsItemInserted = true;
}

Lifesaver!!

You can set

radGrid1.MasterTableView.IsItemInserted = false;
radGrid1.Rebind();

that will remove the inserted item (like pressing cancel).


You could try using jQuery to press your add button once the page is ready.

Something along the lines of -

$(document).ready(function() {
    $("#addButton").click();
}

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

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