Hi all,
I have a RadGrid1_ItemCommand where at an e.CommandName == "PerformInsert" after inserting I use the e.Canceled = true to hide the insert template, but it nevers hide. What I'm doing wrong please. Here is the code. The update part does work and hides the <EditFormSettings EditFormType="Template">
I have a RadGrid1_ItemCommand where at an e.CommandName == "PerformInsert" after inserting I use the e.Canceled = true to hide the insert template, but it nevers hide. What I'm doing wrong please. Here is the code. The update part does work and hides the <EditFormSettings EditFormType="Template">
protected
void
RadGrid1_ItemCommand(
object
sender, GridCommandEventArgs e)
{
if
(e.CommandName ==
"PerformInsert"
|| e.CommandName ==
"Update"
)
{
//some code block
if
(Session[
"idSess"
] ==
null
)
{
objBz.Insert(objEntity);
e.Canceled =
false
;
}
else
{
objBz.Update(objEntity);
RadGrid1.MasterTableView.ClearEditItems();
}
}