Hi,
In RadGrid when user click EDIT by checking a condition if 'TRUE' allow edit operation Else display "This particular record cannot be edited".
In RadGrid1_ItemCommand
if e.CommandName == "Edit"
{
if (true)
allow edit
else
RadGrid1.MasterTableView.ClearEditItems();
alert(This particular record cannot be edited); // I need to perform cancel edit operation here itself
}
I can't do RadGrid1.MasterTableView.ClearEditItems(); in RadGrid1_UpdateCommand(){}
In RadGrid when user click EDIT by checking a condition if 'TRUE' allow edit operation Else display "This particular record cannot be edited".
In RadGrid1_ItemCommand
if e.CommandName == "Edit"
{
if (true)
allow edit
else
RadGrid1.MasterTableView.ClearEditItems();
alert(This particular record cannot be edited); // I need to perform cancel edit operation here itself
}
I can't do RadGrid1.MasterTableView.ClearEditItems(); in RadGrid1_UpdateCommand(){}