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.
My EditorControl is a UltraTextEditor with a DropDownEditorButton. I Invoke the method ultraGrid1.PerformAction(EnterEditModeAndDropdown) But the control Can't dropdown.Otherwise,I use the method as follows:
EmbeddableEditorButtonBase baseBtn = ultraGrid1.ActiveCell.EditorResolved as EmbeddableEditorButtonBase; DropDownEditorButton dropBtn = baseBtn.ButtonsRight[0] as DropDownEditorButton; dropBtn.DropDown();
This Mehtod Can make Dropdown but the cell lose the focus,So I must to use DropDownManager,
Now the question is that I Can't get the corrent location for DropDownManager to DropDown.
You would not use DropDownManager.DropDown. If you want to drop down a list in a grid cell, it depends on what kind of list it is. Typically, you would call PerformAction on the grid.
How do you invoke the method of DropDownManager.DropDown?
Can you show me the example?
Thank you.
You probably need to use the Key events of the grid. The EditorControl (the UltraTextBox) is not directly used by the grid. The control merely provides the grid with a copy of it's own internal editor. So almost no events on the UltraTextEditor will fire in response to anything you do in the grid.
The only exception is the EditorButton events.
Hello Mike,
I have a question to ask you. Currently, I have an UltraTextEditor with an EditorButton that drops my user control with the help of the DropDownManager class. The UltraTextEditor is set as the EditorControl of the UltraGridColumn. I need to capture some events, like special keys when the cell is in edit mode but the UltraTextEditor doesn't seem to raise them. Is there a workaround for this or do I have to capture the events at the UltraGrid level?
Thanks in advance for your help.