Hello,
In our application we have implemented a user control that is widely used for presenting and manipulating data (it simply consists of a UltraGrid for displaying the data and an UltraToolbarsManager which provides tools for data manipulating). We are looking for a way to display this user control as a drop down for grid cells that use lookup tables. It would be nice to do that for two main reasons; first, the user will be able to manipulate the data through the user control and, second, to provide a uniform interface for data management in the application.
Having read about the newly added functionality of ControlContainerEditor in version 9.2, we were wondering if this is the right place to start building. We will need of course to pretty much implement (or use, if it's possible) all the UltraDropDown functionality like AutoComplete, support for Value and Display member, keeping the grid cell focused while the user types in and so on.
Any advice about where and how to start will be greatly appreciated.
There's no way to stop this, except what I already said above:
" If you don't want the cell to lose the focus, then you would probably have to use a Control on the DropDownEditorButton that does not accept focus to itself."
I mean I don't want the cell to lose focus,but the control on the DropDownEditorButton gets focus automatically when dropdown. What Can I do?
I'm afraid I don't understand your question. What about it?
How about the Control in DropDownEditorButton getting focus when DropDown automatically?
tidge said:My EditorControl is a UltraTextEditor with a DropDownEditorButton. I Invoke the method ultraGrid1.PerformAction(EnterEditModeAndDropdown) But the control Can't dropdown.
Okay, that's correct. If you are using an DropDownEditorButton, then PerformAction won't work, because the grid doesn't know about the button. That's what I meant above when I said it depends on what kind of button it is.
tidge said:Now the question is that I Can't get the corrent location for DropDownManager to DropDown.
I don't see how DropDownManager will make any difference here. If you are dropping down a control, then the control gets the focus and therefore the cell loses the focus. The DropDownEditorButton already utilizes DropDownManager, so that won't make any difference in terms of focus. If you don't want the cell to lose the focus, then you would probably have to use a Control on the DropDownEditorButton that does not accept focus to itself.