Hello,
I hope this is the right forum, because my problem affects UltraCombo / UltraComboEditor as well.
We were able to adjust the settings for a standalone UltraCombo / UltraComboEditor, so that the user can search items by typing (DropDownStyle = DropDown, AutoCompleteMode = SuggestAppend) and get's a hint (by UltraValidator), when the typed text is not in the list.
Now we'd like to achieve the very same when the UltraComboEditor is placed as an EditorComponent on a GridCell. What we want is, that the user can type characters and get's suggestions (like AutoCompleteMode = SuggestAppend) and a hint is displayed in the cell, when no matching item for the entered text could be found.
We did a lot of searching and trying but didn't succeed. We observed, that when entering text which could not be found in the list, it's lasting much longer until the component recognizes, that no matching item could be found, when the UltraCombo is in a GridCell compared to a standalone UltraComboEditor.
What the heck is the UltraGrid doing meanwhile? Could you be so kind as to explain the matching-process in the grid-case? What is the appropriate way to achieve our desired solution?
We are using Infragistics v10.3 and the data for the lookup is delivered by a catalogue table (primkey as ValueMember and name as DisplayMember) and the value to be edited is a foreign-key in another table (e.g. fk_catalogue)).
Hope you can help us once more and thanks in advance,
Roman
What is the Style of the grid column set to? The grid shouldn't stop you from leaving the cell - unless maybe the data source is disallowing the value the grid is trying to write to that cell.
Try handling the grid's Error or CellDataError events. One or both of those should be firing in that case.
Hi,
I have a ultracombo in a ultragrid cell. This combo has ValueMember = ItemID and DisplayMember = ItemDsc. Ultra combo has been configured as a dropdown, so it's possible type the desired text.
When the user types a text that match any of the available values the dropdown suggest the value correctly.
When the user types a number (that obviously doesn't exists) and then he tabs out, the value is set to the property and my own validation is displayed correctly.
But when the user types a text that doesn't exist and then he tabs out, the value is not assigned to the property and no validations are displayed. The focus remains at the combo, is not possible to tab out and there is not validations.
Is there anything I can do for getting the validation when the user types an incorrect text?
Thanks
I'm not sure I understand what you are asking. You want the grid cell to update the data in the dropdown list? That doesn't make any sense.
Are you saying that your grid also has the same two fields that you have the in dropdown? That doesn't make a lot of sense, either, since it's redundant. But in any case, there's no way the grid can do that for you automatically.
What you would have to do is get use an event of the grid, like BeforeCellUpdate. Get the ValueList from the cell and use the GetValue method on the ValueList to try to find a matching item on the list. If the index returned is -1, then you know the item does not exist on the list and you can set the Value of the other cell in the same grid row to the Text of the cell.
I have an ultracombo in an Ultragrid with ValueMember = "ItemId" and DisplayMember = "ItemText".
If the user types a new value that doesn't exist in the ultracombo. I want it to update the itemText property in the datasource used in the ultragrid instead of the itemId. Is that possible?