Hello,
I have an ultra combo in a form with a grid embedded within. I'm trying to do a filter that filters on all columns of the grid instead of the visible column on the combo. For that, I have a textbox outside the combo to write the string which I want to filter, and I'm filtering on the datatable itself and doing a "ToggleDropDown" to the combo on the textchanged event of the textbox. The filtering works great, but when the combo "drops down", I lose the focus on the textbox, which is a behavior that I don't want, because every time I write a character, I have to click again on the textbox to put the focus on it.
Is it possible to maintain the drop down toggled while I have the focus on the textbox?
Thanks a lot :)
Hi Xe,
A dropdown can only be dropped down when the control has focus on it. But you can achieve the desired behavior following these steps.
1. Create a UserControl with a TextBox and a Grid.2. Use the UserControl as the Control for the DropDownEditorButton in the TextBox.3. Now when you open the dropdown both TextBox and Grid are visible and when you type a string in the TextBox, you can search for it in the Grid.
Please let me know if you need any further assistance.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer, Windows Formshttp://ko.infragistics.com/
I have tried to take another approach.
Have made a custom user control with a ultratexteditor and a dropdowneditorbutton in the Right Buttons collection with a grid within it's control. I write on the textbox and this creates a OR filter between all columns so it's possible to search a single string in all columns. The problem is the same, I can't write in the textbox without closing the dropdown. Since the dropdowneditorbutton is attached to the textbox, is it possible to maintain it opened while I write the text so I can see the grid filtering, or is it not possible again?
Thanks for the help :)
With the setup and layout you are describing I don't see how to keep the drop down toggled while focus is on a different text box. Looking at the source the combo needs focus to be able to drop down. Are you limited in the layout / experience you are working to achieve here or do you have a little more freedom to approach this differently? I'm envisioning an actual grid on the form that you make visible (instead of dropping down).