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
35
Button inside a combo box
posted

I want to add an action at the bottom of a combo box, and I though one way might be to make it a button.  Is there any way to make an item in one of the Infragistics combo controls look and act like a button?

Thanks,
David

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi David,

        Not really. A Combo's list is not editable, so there's no easy way to make it behave like a button. If you really wanted to work at it, you could maybe draw a button in the cell using an image or a DrawFilter, but getting it to look right on different operating systems and behave correctly when pressed would not be a trivial task.

        As an alternative, you might consider creating your own dropdown. This might sounds like even more work, but it's actually not. What you do is start with the UltraTextEditor. Go to the ButtonsRight collection and add a DropDownEditorButton. This button allows you to specify a control to drop down. So you could use an UltraWinGrid as your dropdown, or maybe a UserControl that has a grid or a listview and a button.

        Then you just need to handle some events for what happens when the user selects a row in the grid/list/whatever and what happens when they drop down the list in the first place.  

Reply Children
No Data