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

Auto suggest functionality in the GridView.

1 Answer 42 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 27 Jun 2011, 09:35 AM
I got one problem in the Auto suggest functionality in the MultiColumnComboBox Column in the GridView.
I can't type my choice.
I need to select from the dropdown
Pls provide the alternative solution to achieve this functionality.

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 29 Jun 2011, 02:08 PM
Hi Bang,

I have already answered your question in the support ticket, which you have created for the same requirement. I am just posting it here as well, because our community may find it useful.

GridViewMultiComboBoxColumn does not support the auto-suggest functionality at this time. However, you can use auto-filter instead. In order to implement auto-filtering for your column you can use CellEditorInitialized event:
void radGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
    RadMultiColumnComboBoxElement multiComboElement = this.radGridView1.ActiveEditor as RadMultiColumnComboBoxElement;
    if (multiComboElement != null)
    {
        multiComboElement.EditorControl.MasterTemplate.BestFitColumns();
  
        multiComboElement.DropDownStyle = RadDropDownStyle.DropDown;
        multiComboElement.AutoFilter = true;
  
        if (multiComboElement.EditorControl.FilterDescriptors.Count == 0)
        {
           multiComboElement.EditorControl.FilterDescriptors.Add(multiComboElement.DisplayMember, FilterOperator.StartsWith, String.Empty);
        }
    }
}

Do not hesitate to contact us again if you have any other questions. 

Kind regards,
Martin Vasilev
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
Charles
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or