PropertyGrid undo/redo subscription

4 posts, 0 answers
  1. Stephanie
    Stephanie avatar
    2 posts
    Member since:
    Mar 2014

    Posted 27 Mar 2014 Link to this post

    Whilst working with the telerik property grid for wpf, I realised that it automatically implemented an undo/redo command on each property in the property grid. I was wondering if there was a way I could bind this command to say a button that could be clicked for usability's sake (not individually, but for the grid as a whole).

    Thanks very much in advance!
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 01 Apr 2014 Link to this post

    Hello,

    Would you please clarify what do you mean by "the undo/redo command on each property in the property grid"? What the purpose of this button would be?

    Regards,
    Didie
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Stephanie
    Stephanie avatar
    2 posts
    Member since:
    Mar 2014

    Posted 02 Apr 2014 in reply to Dimitrina Link to this post

    I'm beginning to think it's just a Microsoft thing that's leaked into our software. When I was clicking on a property, I could press control+Z and it would take it back to the previous version...

    We basically want to implement a button that we can click that will revert changes made to the properties within the property grid (as a standard undo button would do). Is there a way you can recommend doing this?
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 04 Apr 2014 Link to this post

    Hi,

    I am afraid our control does not expose such a command to undo all the edits done.

    If you would like to disregard it, I can suggest you to implement IEditableObject for your bound object.
    That way you will be able to cancel the edit after the value has been changed.


    Regards,
    Didie
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top