We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Prevent clicking anywhere on EditMode

Hi, when in EditMode, two buttons show up. These being the Accept and Cancel buttons. In order to save changed, one has to press on either the accept button or else, press anywhere else on the grid. Can the latter case be prevented? Thanks.


1 Reply

RS Rajarajeswari S Syncfusion Team July 8, 2008 08:42 AM UTC


Hi,

Thanks for using Syncfusion products.

Can the latter case be prevented?

Yes, It can be prevented. To prevent the navigation we should cancel the “Navigation” action through “CurrentRecordContextChange” event. Please refer the below code snippet which illustrates this:

void GridGroupingControl1_CurrentRecordContextChange(object sender, Syncfusion.Grouping.CurrentRecordContextChangeEventArgs e)
{

if (e.Action == Syncfusion.Grouping.CurrentRecordAction.NavigateCalled)
{
e.Cancel = true;
}
}

Please refer the sample from the below link, which illustrates the above:

http://www.syncfusion.com/support/user/uploads/Navigation_62129943.zip

Please let me know if this helps you out.

Regards,
Raji



Loader.
Live Chat Icon For mobile
Up arrow icon