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

Add IsUndoEnabled property for TextBoxes

1 Answer 66 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
PaulR
Top achievements
Rank 1
PaulR asked on 05 Oct 2016, 03:28 AM

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.

 

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 07 Oct 2016, 12:52 PM
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.
Tags
PropertyGrid
Asked by
PaulR
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or