Add IsUndoEnabled property for TextBoxes

2 posts, 0 answers
  1. PaulR
    PaulR avatar
    19 posts
    Member since:
    Jun 2016

    Posted 04 Oct 2016 Link to this post

    We would like to disable the Undo feature of the TextBoxes that are auto-created for string properties.

    It interferes with our global Ctrl+Z undo command when the TextBox in the PropertyGrid are keyboard focused.



  2. Martin Vatev
    Martin Vatev avatar
    130 posts

    Posted 07 Oct 2016 Link to this post

    Hi Paul,

    To achieve the desired behavior you can capture the FieldLoaded event and in the handler to check if the content of the current field is TextBox. Then you can set the IsUndoEnabled property of TextBox to false. In that way, you can disable the Undo feature of the TextBoxes that are auto created for string properties in RadPropertyGrid.

    I hope that this helps.

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