Add IsUndoEnabled property for TextBoxes

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

    Posted 04 Oct 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.

    Thanks.

     

  2. Martin Vatev
    Admin
    Martin Vatev avatar
    87 posts

    Posted 07 Oct 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.

    Regards,
    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.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top