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

Use SecureString as PropertyType

2 Answers 88 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 16 Sep 2015, 06:57 AM

Hi,

I must use a SecureString as a property type. Is it possible to edit the value in the PropertyGrid? How can I achieve this?

I already tried to get the value in the EditEnded event and tried to convert it on my own, but I do not get the value, it is null.

Thanks for your replies.

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 18 Sep 2015, 02:29 PM
Hi Richard,

In order to fire EditEnded event of RadPropertyGrid and get the edited value, you need to set the EditMode of the control to single. PropertyGridEditEndedEventArgs expose a NewValue property which you can use to get the new input from the user. However, this property is read only so you will not be able to modify its value.

For this case, I suggest you applying IValueConverter to the Binding of the needed PropertyDefinition and modify the user input in the ConvertBack method.

Does this approach fit your requirements?

Regards,
Stefan X1
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Richard
Top achievements
Rank 1
answered on 06 Nov 2015, 12:57 PM

Yes, I did it with an IValueConverter.

Thank you.

Tags
PropertyGrid
Asked by
Richard
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Richard
Top achievements
Rank 1
Share this question
or