Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Click event on editor of UltraCombo control
posted

Hi,

I have a UltraCombo control. Its AutoCompleteMode is set to None. When I click on the editor of the control, I want to display the dropdown. I tried the Click event but this event fires also when you click on the dropdown button. I am looking for an event that works specifically for the editor part of the control only. Any other event I can use to accomplish this?

Thanks,

Jason

Parents
  • 469350
    Offline posted

    Hi Jason,

    It sounds like you want to set DropDownStyle to DropDownList. Then the control will always drop down when it is clicked and the user will only be able to choose a value from the list - they won't be able to type into the combo.

    If I am wrong, and that's not what you want, then I need a little clarification. You can probably use the MouseDown or MouseUp event and use the UIElements to determine which part of the control was clicked. But it makes a difference whether the control is already in edit mode or not, because when it's in edit mode, it will be displaying a TextBox control over itself. So you might need to hook the Click event of the TextBox instead of the combo - it depends on the behavior you want.

Reply Children