Preserving data on Undo

4 posts, 0 answers
  1. Deepak Shakya
    Deepak Shakya avatar
    118 posts
    Member since:
    Aug 2007

    Posted 24 Oct 2012 Link to this post


    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?
  2. Zarko
    Zarko avatar
    755 posts

    Posted 26 Oct 2012 Link to this post

    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,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
  4. naga
    naga avatar
    8 posts
    Member since:
    Apr 2016

    Posted 06 Apr Link to this post

    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 ?

  5. Martin
    Martin avatar
    1044 posts

    Posted 08 Apr Link to this post

    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.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top