I have a grid with UltraCombo (it's style is set to DropDownList) set as an EditorControl of some column. Whenever user selects an item from the combo, its value gets save to underlying data source, as expected. The only problem is that, whenever user opens dropdown on a cell with some value in it, its value does not get automatically selected in drop down. Is there any clean way to achieve this behaviour?
Best regards.
If setting the Value on the cell doesn't work, then something is wrong. That's the correct way to do it. Perhaps it has something to do with the event you are using. You might want to use AfterExitEditMode, instead.
I'm facing the exact same problem. I've already substituted the UltraCombo (which I had too used as an editorcontrol) with an UltraDropDown in the ValueList property.
The problem is when my user alters something in the row; the listitems of the valuelist (datatable) have to be updated. I use the AfterCellUpdate event to trap changes to the cells and refresh the list. In the event, I use the ValueListResolved property to get the UltraDropDown and set it's DataSource property to the new datatable which is fetched from business logic.
After refreshing the option list, I need to sort it (by total costs) and select the first row (being the row which costs the least). It's that last part which I can't acheive. The list is sorted and displayed correctly, but altering the cell's value or the dropdown's SelectedRow property doesn't result in a row being displayed as the default value. What property do I need to set in order to get the first row to be selected and displayed after the list is refreshed?
Hi,
Selecting the item on the list happens by default. If it's not working, then something is wrong. It's hard to guess what that might be. If you can duplicate this in a small sample project, you should Submit an incident to Infragistics Developer Support.
Why are you using an UltraCombo to provide the list in the cell? There are probably better ways. See this KB article: HOWTO:What is the best way to place a DropDown list in a grid cell?