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

Auto-complete with WinForms GridView

9 Answers 565 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 27 Aug 2007, 11:23 PM
Are there any examples for doing an auto-complete with the WinForms GridView?  If not, is this something that can easily be done with the WinForm GridView?

9 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 28 Aug 2007, 10:30 AM
Hello R D,

Thank you for your question.

We would be glad to help you, but we will need more details on the feature you request.

We do have an example in our WinForms Demos --> RadGridView -> Column Types, which demonstrates different kinds of columns. Check the look-up column. Is this what you need? If not, could you describe in detail what are you after? Thanks in advance.

 
Sincerely yours,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ron
Top achievements
Rank 1
answered on 28 Aug 2007, 03:52 PM
Thanks for your reply.  Essentially, what we need is an auto-complete combobox within a grid.  Can this easily be done with the WinForm GridView?

Thanks again,
Ron
0
Peter
Telerik team
answered on 29 Aug 2007, 04:33 PM
Thank you for the additional details, Ron. Although RadComboBox supports multi mode auto-complete, this feature is not yet available within the grid. We will do our best to add it in our next release, scheduled for the middle of September.


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Murugesan Sivathanu
Top achievements
Rank 1
answered on 14 Dec 2010, 03:29 AM
Hi,

Is this feature available now? Autosuggestbox  in Gridview?

Muru
0
Peter
Telerik team
answered on 17 Dec 2010, 12:27 AM
Hi Murugesan Sivathanu,

Thank you for the question.

We replaced the old RadComboBox editor in RadGridView with the new RadDropDown editor that fully supports auto complete-mode.

I hope this helps.

Regards,
Peter
the Telerik team
Check out the Q1 2011 Roadmap for Telerik Controls for Windows Forms.
0
Murugesan Sivathanu
Top achievements
Rank 1
answered on 17 Dec 2010, 12:32 AM
Dear Sir,

Thank you so much for your response. I am not able to find any sample or demo in the support forum which will show how to use raddropdown editor in Datagridview in winforms. Could you please send me sample code?

Thank you

Regards,
Muru
0
Svett
Telerik team
answered on 22 Dec 2010, 09:56 AM
Hi Murugesan,

You should subscribe to the CellEditorInitialized event where you can enable the auto-complete mode of RadDropDownListEditor:

void radGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
    RadDropDownListEditor listEditor = this.radGridView1.ActiveEditor as RadDropDownListEditor;
     
    if (listEditor == null)
    {
        return;
    }
 
    RadDropDownListEditorElement editorElement = listEditor.EditorElement as RadDropDownListEditorElement;
    editorElement.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
    editorElement.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown;
}

You can use this documentation article as a reference to the auto-complete mode in RadDropwDownList.

Kind regards,
Svett
the Telerik team
Check out the Q1 2011 Roadmap for Telerik Controls for Windows Forms.
0
shinu rag
Top achievements
Rank 1
answered on 13 Jan 2011, 06:30 AM
HI Svett .
1 doubt about RadMultiColumnComboBox in Gridview(ver 9.0).
i set AutoCompleteMode property as AutoCompleteMode.SuggestAppend, but its not working....

here is my code...
private void GridViewSample_CellEditorInitialized(object sender, GridViewCellEventArgs e)
        {
            RadMultiColumnComboBoxElement multiComboElement = this.GridViewSample.ActiveEditor as RadMultiColumnComboBoxElement;
        if (multiComboElement != null)
        {
             multiComboElement.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
               multiComboElement.AutoSizeDropDownToBestFit = true;
                multiComboElement.AutoFilter = true;
                multiComboElement.DropDownSizingMode = SizingMode.UpDownAndRightBottom;
 
                //multiComboElement.EditorControl.MasterGridViewTemplate.BestFitColumns();
 
                if (multiComboElement.EditorControl.MasterGridViewTemplate.FilterExpressions.Count == 0)
                {
                    FilterExpression autoFilter = new FilterExpression("Name", FilterExpression.BinaryOperation.AND,
                        GridKnownFunction.StartsWith, GridFilterCellElement.ParameterName);
                    autoFilter.Parameters.Add(GridFilterCellElement.ParameterName, string.Empty);
                    multiComboElement.EditorControl.MasterGridViewTemplate.FilterExpressions.Add(autoFilter);
 
                }
            }
        }

i won't to show the data in the current typing row.. but can see the data like SuggestAppend mode...

thanks..
shinu

0
Svett
Telerik team
answered on 18 Jan 2011, 09:34 AM
Hello Ron,

RadMultiColumnComboBox does not support different auto-complete modes. The property AutoCompleteMode appears in the control, because it is inherited from the base popup control used in RadControls for Winforms.

Kind regards,
Svett
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
Ron
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Ron
Top achievements
Rank 1
Peter
Telerik team
Murugesan Sivathanu
Top achievements
Rank 1
Svett
Telerik team
shinu rag
Top achievements
Rank 1
Share this question
or