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.
Unfortunately, activation email could not send to your email. Please try again.

undo/redo problem

Thread ID:

Created:

Updated:

Platform:

Replies:

94609 May 24,2010 05:45 AM May 26,2010 05:14 AM ASP.NET Web Forms (Classic) 3
loading
Tags: GridGroupingControl
Hanson Liao
Asked On May 24, 2010 05:45 AM

Hi,

I have a question regarding when implementing "undo" within the grid control.

Let say I have two grids 'A' and 'B', in the case when there are variables in grid 'B' that are related to grid 'A', when I delete something in grid 'A' the related variables in grid 'B' will also
be deleted.

The problem now is, when I undo in grid 'A' how do I also undo grid 'B' at the same time?

I've had a look at the debug mode of the undo function, but I don't understand what the undo functionhas done.

since I'm not quite sure what the undo function has done, I'm dont know how to undo grid 'B'.

Best Regards

Jisha Joy [Syncfusion]
Replied On May 25, 2010 05:08 AM


Hi Hanson,

Essential Grid has flexible undo-redo support that is illustrated in 'Undo-Redo Demo' sample. Run the sample and make changes to the grid. As you make the changes, the two list boxes that are displayed on your left will show the "Redo" and "Undo" buffers. Essential Grid maintains these buffers for you if you choose to enable this support.


This architecture is extensible. You can derive from either of the two abstract classes, Command or GridModelCommand, to customize the types of commands that you need.

See the following browser sample for more details.

..\\Windows\Grid.Windows\Samples\2.0\MS Excel-Style Features\Undo-Redo Demo

Regards,
Jisha

Hanson Liao
Replied On May 25, 2010 06:32 AM

Hi Jisha,

My Essential Studio version is 7.1.0.20, and I can't find the sample 'Undo-Redo Demo'.

Is this version do not have this example?

Best Regards

Jisha Joy [Syncfusion]
Replied On May 26, 2010 05:14 AM

Hi Hanson,

Thank you for your update.
In 7.1.0.20 version the sample is available int he following location.

Windows/Grid.Windows/Samples/2.0/Featured Samples/Undo-Redo Demo

Regards,
Jisha

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.

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.

;