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

Popup_MouseClick not firing

1 Answer 56 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Kim
Top achievements
Rank 1
Kim asked on 19 Aug 2013, 08:16 PM
lst.Popup.MouseClick += new MouseEventHandler(Popup_MouseClick);


Popup_MouseClick not firing. 


Any idea?

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 21 Aug 2013, 02:04 PM
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 >>
Tags
DropDownList
Asked by
Kim
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or