Hi there,
Is it possible to automatically display the drop down of an UltraComboEditor when the control receives focus in the Focus event?
I am trying to mimic the functionality of the Windows 7 search within Windows Explorer. I am deliberately setting DropDownButtonDisplayStyle to Never.
I have tried calling UltraComboEditor1.DropDown() but it does not display the drop down.
Any thoughts?
Hello Paul Anderson,
What you could do here in order to achieve such behavior would be the following:
1. Set the UltraComboEditor AlwaysInEditMode to true.2. Handle the Enter event of the UltraComboEditor and call the DropDown() method there.
Doing so, the Editor will drop down regarless of the way it gets focus, by tabbing or by clicking in the control.Please feel free to let me know if you have any other questions with this matter.
Hi Danko,
Thanks for that. I had already tried calling the DropDown() method in the Enter event but not tried setting the AlwaysInEditMode to true. Will give this ago later.
Thanks,
Andez
Hello Andrez,
I will be waiting for your feedback.If you have any other questions please do not hesitate to contact us.
Works fine.
Thanks for your help,
I am glad that I was able to assist you here.
If you have any other questions please feel free to let us know.
Hi Andrez,
I m also having similar requirement but its kind of reverse way.
I want to provide user a combo box having 2 column in which one column is editable and another one is non editable.
having only two rows.
We need it because user wants for provide range of number for some criteria.
i want that combo box to be kept on displaying till the time user is entering values in the two rows or the editable column.
The moment it clicks outside means the focus on the control lost, values entered shuould get appeared in side combo box as comma seperated value.
Currently, the moment you click on the cell of the drop down of combo,it will be gone(Normal way fo combo editor).
Please find the attached screen shot for the same and refer row 2.
Hi
Setting the Value or Text of the UltraTextEditor will not have any effect on the tree. The correct way to handle this is to set the Value of the tree cell.
If that's not refreshing the cell, the my best guess is that it's because the cell is still in edit mode.
So if that's the case, the solution would be to set the value of the editor instead of the value of the cell. Note that I am talking about the editor here, not the editor control (the UltraTextEditor control).
this.ultraTree1.ActiveCell.EditorResolved.Value = newValue;
Hi Mike,
Little correction in the above problem statement.
Node cell value is getting set but is not getting refreshed.When the focus of the cell is getting lost than cell value is getting appeared whatever i m setting it.
Please let me know how can we solve this ?
I tried setting the tree node cell value using the SetCellValue method of the UltraTreeNode.
But still after the setting the value, apperance is still blank though value of the respective node cell has been set.
Please guide me how can i display the same in the corresponding node cell.
Many Thanks,
Rajeev Ranjan
Hi Mike..
Thanks for the reply and explanation.
One last doubt:
Currently i having one UltraTextEditor with one button added in the Button right collection fo the UltraTextEditor.
I m setting above UltraTextEditor as the Editor Component of the Tree node cell.
On the Click of the right button of the UltraTextEditor, i m showing one small form where user can enter some value in the text box present inside the form.
After user click on the Ok button which is their in the form, form is getting closed and i m taking the user edited value and trying the to set as the Text property of the UltraTextEditor which is set as a EditorComponent of the tree node.
Though i m trying to set to set the text proeprty of the UltraTextEditor, its not getting reflected in the node cell.
Blank is appearing over there.
Why its not happening ? But when i simple go and write some thing manually its getting reflected(Without opening the form by click on the right button).
Please help me to understand the reason for the same.
Hi,
rranjan1471 said:I m also having similar requirement but its kind of reverse way.
I'm not sure what you mean by this. Your question doesn't seem to be related to the original question posted in this thread at all. It's a completely different issue.
Anyway, UltraCombo/UltraDropDown do not allow editing of the dropdown list portion. There's no way to do that with the built-in dropdown.
What you could do, though, is create your own DropDown. You could use UltraCombo or UltraTextEditor and add a DropDownEditorButton to the ButtonsRight collection and assign a control to the button. In this case, you would want to use an UltraGrid, I think and then the users could drop down the list and edit the grid.
You would have to handle all of the interactions yourself, though - so you would have to decide what to do when the user dropped down the list and also how the user goes about selecting an item (or items) from the list and populate the grid cell.