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

PropertyChange Event

1 Answer 106 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Ji -Won
Top achievements
Rank 1
Ji -Won asked on 13 Feb 2012, 09:02 AM
Hello.

My Some own class have EnumValue Property.

that is showing like a combobox.

but that combobox doesn work before press enter key.

My boss want see preview about change value(that value make some design to another control)
when change combobox value..

please tell me how i can use change value without enter key at enumValue.

Thank you...

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 15 Feb 2012, 06:23 PM
Hello Ji-Won,

Thank you for writing.

To achieve this, you can use the EditorInitialized event and there subscribe to the editors SelectedIndexChanged event and change the property when you change the selection in the editor. I have attached a sample project where I have created a custom enum with color names and a proxy class which uses this enum to change the fore color of a label. The is needed strictly for the demonstration. In your real app you just need to subscribe and unsubscribe to the editor events. 

I hope you will find this useful. Should you need further help, I would be glad to assist.

Regards,
Ivan Petrov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
PropertyGrid
Asked by
Ji -Won
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or