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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Prevent clicking anywhere on EditMode

Thread ID:

Created:

Updated:

Platform:

Replies:

74982 Jul 7,2008 01:07 PM UTC Jul 8,2008 08:42 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
-
Asked On July 7, 2008 01:07 PM UTC

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.


Rajarajeswari S [Syncfusion]
Replied On 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



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;