This is a migrated thread and some comments may be shown as answers.

Preserving data on Undo

3 Answers 46 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Deepak Shakya
Top achievements
Rank 1
Deepak Shakya asked on 24 Oct 2012, 06:56 AM
Hi,

Could someone please tell me how I can preserve the shape content (data) when I undo the "delete".

Here is my scenario:
  • Diagram's GraphSource is bound to a collection derived from ObservableGraphSourceBase<ITreatmentNode,TreatmentLink>
  • The node content is set via DataTemplate and also has EditTemplate
  • I drop the shape and edit the values
  • I then delete the shape by mistake
  • I undo it (Ctrl +z)
  • The shape appears but the data is lost. It has the default values that was there when I dropped the shape.

Is there a way to control this?

3 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 26 Oct 2012, 01:53 PM
Hi Deepak,
Could you please send us some code snippets or a sample project because I wasn't able to reproduce you issue? I've attached the sample project that I used for testing so you could examine it and see if it helps you.
If you have further questions please feel free to ask.

Kind regards,
Zarko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
naga
Top achievements
Rank 1
answered on 07 Apr 2016, 04:55 AM

Hi Zarko

  I need to stop undo and redo service (for prevent shapes and connections ) in kendo diagram using jquery or javascript  .

In my project , i was form some shape with connections during drag event in kendo Diagram(refer image 1).then press ctrl+z ,last formed connection is lossed(refer image 2).

so i need to stop this undo and redo service.

How to stop these service in kendo diagram using jquery or javascript ?

0
Martin Ivanov
Telerik team
answered on 08 Apr 2016, 03:02 PM
Hello Naga,

Note that this is the RadDiagram for Silverlight section of the forum and the previous communication is related to the Silverlight control. This is why I would ask you to post your question in the Kendo forum or open a new support ticket with its product set to the Kendo diagram.

Regards,
Martin
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
Diagram
Asked by
Deepak Shakya
Top achievements
Rank 1
Answers by
Zarko
Telerik team
naga
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or