Hi!
I would like to change edit mode depending on what the user would like to do. If the user want to make a insert then I would like to use GridEditMode.EditForms, but if the user want to edit a row I would like to use GridEditMode.InPlace.
I tested the following method without any luck. Do you any other solution for me?
I would like to change edit mode depending on what the user would like to do. If the user want to make a insert then I would like to use GridEditMode.EditForms, but if the user want to edit a row I would like to use GridEditMode.InPlace.
I tested the following method without any luck. Do you any other solution for me?
void MeterReading_GridMeterDetails_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == RadGrid.InitInsertCommandName)
{
MeterReading_GridMeter.MasterTableView.EditMode = GridEditMode.EditForms;
e.Item.OwnerTableView.EditFormSettings.UserControlName = TemplateSourceUrl + "/EditForm/MeterReadingEdit.ascx";
}
else if (e.CommandName == RadGrid.EditCommandName)
{
MeterReading_GridMeter.MasterTableView.EditMode = GridEditMode.InPlace;
}
}