PropertyChange Event

2 posts, 0 answers
  1. Ji -Won
    Ji -Won avatar
    6 posts
    Member since:
    Sep 2011

    Posted 13 Feb 2012 Link to this post


    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...
  2. Ivan Petrov
    Ivan Petrov avatar
    717 posts

    Posted 15 Feb 2012 Link to this post

    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.

    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 >>
Back to Top