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
I have a question in this area for m QTP.I am able to see the dropdown in the .Net SPY.
What I want to do is to wrire QTP script to click on this dropdown button.But am not able to find a way through the .NET spy to click that dropdown.
Could you please help me with that.
Thank you in Advance,
Ram Priya
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.