In my radgrid, on click of AddNewRecord, I open a user control with a search textbox and button. To hide the AddNewRecordButton and Header I have on RadGrid1_ItemCommand I have the following:
But when the search textbox retrieves results and I select one of the entries, a postback is done to display the selected the value, after which the header and AddNewRecordButton are again visible though, the user control is still open. Is there a way to hide it after the postback?
if (e.CommandName == RadGrid.InitInsertCommandName)
{
this._RadGrid1.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = false;
this._RadGrid1.MasterTableView.ShowHeader = false;
}