This is a migrated thread and some comments may be shown as answers.

MultiComboBoxColumn in radGridView

2 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
thien nluong
Top achievements
Rank 1
thien nluong asked on 14 Apr 2011, 04:43 AM
Hello.
I insert MultiComboBoxColumn to radGridView and i want it auto complete = true.
Ex: I type "h" it will show "hello" from db

i used
GridViewMultiComboBoxColumn col = new GridViewMultiComboBoxColumn();
           col.DataSource = mh.ToList();
           col.DisplayMember = "ProductName";
           col.ValueMember = "ProductId";
           col.FieldName = "ProductId";
           col.HeaderText = "Product Name";
           col.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown;
           col.AutoCompleteMode = AutoCompleteMode.SuggestAppend;

or

FilterDescriptor descriptor = new FilterDescriptor(col.DisplayMember, FilterOperator.StartsWith, string.Empty);
col.FilterDescriptor = descriptor;

but it not work.

Any suggestions for me.
Sorry my english not well.


Thanks,
NLT

2 Answers, 1 is accepted

Sort by
0
Accepted
Svett
Telerik team
answered on 18 Apr 2011, 03:19 PM
Hi thien nluong,

If you want to enable auto-complete mode of GridMultiComboBoxColumn, you should set the AutoFilter property to true. You can read more about that in the online documentation. You should set it in the CellEditorInitialized event of RadGridView. 

All the best,
Svett
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
thien nluong
Top achievements
Rank 1
answered on 18 Apr 2011, 05:14 PM
thank you very much. I found this answer two weaks ago. :D
Tags
GridView
Asked by
thien nluong
Top achievements
Rank 1
Answers by
Svett
Telerik team
thien nluong
Top achievements
Rank 1
Share this question
or