I am rebinding a Hierarchical radgrid after closing a custom edit/insert form using the below code and javascript. I would like to reset the state of the Grid as it was when the user clicked to edit a record. Currently all childgrids close up to the master.
What I want them to see…

What they currently see…

protected void Page_Load(object sender, EventArgs e)
{
RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
manager.ClientEvents.OnRequestStart = "onRequestStart";
manager.AjaxSettings.AddAjaxSetting(manager, this.__rejectedBatchesRadGrid);
manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(Manager_AjaxRequest);
if (!IsPostBack) { }
}
protected void Manager_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
this.__rejectedBatchesRadGrid.MasterTableView.SortExpressions.Clear();
this.__rejectedBatchesRadGrid.MasterTableView.GroupByExpressions.Clear();
this.__rejectedBatchesRadGrid.Rebind();
}
For anyone still looking for an answer in the future here is a link that I finally received from Telerik that accomplishes what I was trying to do.