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. The attached images show what I mean. EditDetailRecord.png is where I want the user to be after the Rebind(). AfterDataRebind.png is currently what they 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();
}