DropDownOpened event in DataFormComboBoxField

3 posts, 0 answers
  1. form
    form avatar
    2 posts
    Member since:
    Jun 2015

    Posted 19 Jun 2015 Link to this post

    Good day, I can not find event  DropDownOpened in DataFormComboBoxField.

    How to track opening?

  2. Stefan X1
    Stefan X1 avatar
    482 posts

    Posted 23 Jun 2015 Link to this post


    Indeed, DataFormComboBoxField does not expose such event. As a workaround I can suggest you the following approach. Subscribe, for example to the LayoutUpdated event of DataFormComboBoxField, and get the editor of DataFormComboBoxField, which is RadComboBox control. Then you can subscribe to its DropDownOpen or DropDownClosed events as suggested below:

    private bool hasSubscribed;
    private void DataFormComboBoxField_LayoutUpdated(object sender, EventArgs e)
        var combo = this.dataForm.
        if (combo != null && !hasSubscribed)
            combo.DropDownOpened += combo_DropDownOpened;
            combo.DropDownClosed += combo_DropDownClosed;
            hasSubscribed = true;

    Note, that I have added a flag for the subscription, since LayoutUpdated would be raised multiple times.

    Hope this helps.

    Best Regards,
    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
  3. DevCraft R3 2016 release webinar banner
  4. form
    form avatar
    2 posts
    Member since:
    Jun 2015

    Posted 28 Jun 2015 Link to this post

    Yes, thank.
Back to Top