Popup_MouseClick not firing

2 posts, 0 answers
  1. Kim
    Kim avatar
    47 posts
    Member since:
    Jul 2013

    Posted 19 Aug 2013 Link to this post

    lst.Popup.MouseClick += new MouseEventHandler(Popup_MouseClick);


    Popup_MouseClick not firing. 


    Any idea?
  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 21 Aug 2013 Link to this post

    Hello Kim,

    Thank you for contacting Telerik Support.

    It is necessary to note that there is Popup element of:
    • RadDropDownList
    • RadDropDownList.DropDownListElement.AutoCompleteSuggest.DropDownList

    MouseClick event of RadDropDownList.Popup is fired when you click the popup opened through the arrow button. If you have AutoComplete DropDownList popup it is necessary to subscribe additionally to its MouseClick event in order to catch it:
    public Form1()
    {
        InitializeComponent();
         
        this.radDropDownList1.AutoCompleteMode = AutoCompleteMode.Suggest;
        
        this.radDropDownList1.Popup.MouseClick += Popup_MouseClick;
        this.radDropDownList1.DropDownListElement.AutoCompleteSuggest.DropDownList.Popup.MouseClick += AutoCompletePopup_MouseClick;
    }
     
    private void AutoCompletePopup_MouseClick(object sender, MouseEventArgs e)
    {
    }
     
     private void Popup_MouseClick(object sender, MouseEventArgs e)
    {
    }
     
    private void Form1_Load(object sender, EventArgs e)
    {
        // TODO: This line of code loads data into the 'nwindDataSet.Customers' table. You can move, or remove it, as needed.
        this.customersTableAdapter.Fill(this.nwindDataSet.Customers);
     
        this.radDropDownList1.DataSource = this.nwindDataSet.Customers;
        this.radDropDownList1.AutoCompleteDisplayMember = "ContactName";
    }

    If your case is different, a sample project will be greatly appreciated.

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top