Hi,
I am using an UltraGrid and I need to add in one column of the grid a comboBox or Dropdownlist
I would like to be able to type in the combobox some text and a filter will show only the value corresponding to the text that I type in
(Not only the first caracter of the display text)
Exemple : of value in the comboBox
return Value is a string type
Display value is also a string type
Value Display Text (in the combo or dropdown)
100-01 Managing department 13
100-02 Dev department 34
100-03 Music department 53
So if I type sic the combo will show only the item 100-03 Music department 53
If I type 13 the combo will show only the item 100-01 Managing department 13
If this is possible with an ultraGrid what type of drodown should I use to accomplish this
UltraComboeditor, UltraCombo or anything else
Also how to bind the data in the dropdown and the dropdown in the grid and the data filter if we have to add a dataFilter on the dropdown
Do you have any sample of code doing this
Thanks in advance
Hi Yann,
You can achieve this by adding UltraCombo to your Grid. You can refer to the following Knowledge Base article to know more about the dropdown list choices to place in a grid column.
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=7841
Can you please provide me more details about what you are trying to achieve by adding data filter? Data filter is used to transform data from one format to another. You can read more about it here:http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=5014
Please refer to the sample attached for adding UltraCombo inside an UltraGrid column and let me know if you have any additional questions.
UltraCombo Editor only supports “Starts with”, if you want to have “Contains” it should be a product idea.
You can suggest new product ideas for future versions (or vote for existing ones) at <http://ideas.infragistics.com>.
Submitting your idea will allow you to communicate directly with our product management team, track the progress of your idea at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. You can also link back to this thread for additional details.
Thank you in advance to submitting your product idea.
Sincerely,
Sahaja Kokkalagadda
Associate Software Developer, Windows Forms
http://ko.infragistics.com/
Hi Thank you for the anwser
For programmer that are interested in this behavior or article
The only think that was missing in the article to accomplish my need is to define de style of the column, the AutoCompleteMode mode and the AutoSuggestFilterMode
Exemple :
grdOperation.DisplayLayout.Bands(0).Columns(COL_NAME_PLANIF_PROD_OPERATION_ID).Style = ColumnStyle.DropDowngrdOperation.DisplayLayout.Bands(0).Columns(COL_NAME_PLANIF_PROD_OPERATION_ID).AutoCompleteMode = AutoCompleteMode.SuggestAppendgrdOperation.DisplayLayout.Bands(0).Columns(COL_NAME_PLANIF_PROD_OPERATION_ID).AutoSuggestFilterMode = AutoSuggestFilterMode.Contains
Another little problem that I found is when we type text in the drop down the search is done as we are expecting then if we use the arrow down to select for exemple the third item in the list, the focus pass to the next line under and does not pickup the item I want in the list
To select the item in the list we have to select the item with the mouse
Is there any solution to correct this behavior
I’m glad you were able to resolve your issue. If you have any other questions, please let me know.
Ok i find the problem
I have a KeyDown event on the grid to force the focus on the next row :)
So thank a lot for the support and have a good day everybody :)