ComboBox property Change_Commited?

5 posts, 0 answers
  1. Web
    Web avatar
    88 posts
    Member since:
    Nov 2006

    Posted 08 Dec 2006 Link to this post

     the asp combobox form controls have a proberty called change_submitted which occures after a comboboxitem is chosen from the dropdownlist and the dropdownlist is closed. now i am locking for the same proberty in the telerik one. which one do i have to choose to get the same action?
    thank you
  2. Georgi
    Admin
    Georgi avatar
    212 posts

    Posted 11 Dec 2006 Link to this post

    Hi kerstin,

    Perhaps you're asking about the events fired when a combobox item is clicked in the dropdown window.
    These events are fired in the following sequence:
    1. SelectedIndexChanged - occurs when the SelectedIndex property has changed.
    2. TextChanged - occurs when the Text property has changed.
    3. DropDownClosed - occurs when the drop-down window has closed.

    Maybe you should use DropDownClosed and put your code in it.

    Let us know whether this helps.


    Regards,

    Georgi

    the telerik team

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Web
    Web avatar
    88 posts
    Member since:
    Nov 2006

    Posted 02 Aug 2007 Link to this post

    Exactly the event should occure right away when i selected a new item from the dropdownlist (at least thats how it is working on all other comboboxes i was using so far) but yours changes only at the second time
  5. Web
    Web avatar
    88 posts
    Member since:
    Nov 2006

    Posted 02 Aug 2007 Link to this post

    well figured it out : radComboBox1.Items[radComboBox1.SelectedIndex].Text; did the trick
  6. Georgi
    Admin
    Georgi avatar
    212 posts

    Posted 03 Aug 2007 Link to this post

    Hi kerstin,

    The already mentioned events (SelectedIndexChanged, TextChanged and DropDownClosed) fire always when a user selects an item from the drop-down list. By the way, 

        radComboBox1.Items[radComboBox1.SelectedIndex].Text

    could be replaced with the same result with 

        ((RadComboBoxItem)radComboBox1.SelectedItem).Text .

    If you give us some more information about your scenario we could help you to find the best solution of your case.

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready