Hi,
Is it possible to dynamically change a Radgrid's EditMode from "InPlace" to "PopUp" from a server side event?
I have a grid in which I want to do Inline editing for an Insert, but a custom web control for Edit.
I tried using the ItemCommand event and changing the grid's EditMode value (see example below), but it still opens in Inline mode.
Is it possible to dynamically change a Radgrid's EditMode from "InPlace" to "PopUp" from a server side event?
I have a grid in which I want to do Inline editing for an Insert, but a custom web control for Edit.
I tried using the ItemCommand event and changing the grid's EditMode value (see example below), but it still opens in Inline mode.
protected void radGridPeople_ItemCommand(object sender, GridCommandEventArgs e){ try { if (e.Item.OwnerTableView.Name == "PersonConditionGrid") { if (e.CommandName == RadGrid.EditSelectedCommandName) { e.Item.OwnerTableView.EditMode = GridEditMode.PopUp; e.Item.OwnerTableView.EditFormSettings.UserControlName = "PeopleMaint/PersonCondAction.ascx"; } } } catch (Exception ex) { ErrorHandler.WriteErrorLog(GenFunctions.CurrentUserName, System.Reflection.MethodBase.GetCurrentMethod().Name, ex); generalCustomValidator.ErrorMessage = ex.Message + "<br/>" + ex.StackTrace; generalCustomValidator.IsValid = false; }}
