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

autocompletebox silverlight toolkit inside radgridview

1 Answer 46 Views
GridView
This is a migrated thread and some comments may be shown as answers.
naurah
Top achievements
Rank 1
naurah asked on 06 Feb 2014, 03:33 AM
How to populate autocompletebox inside radgridview using GridViewDataColumn (web svc)


For radcombobox I'm using ((GridViewComboBoxColumn)this.radGridView.Columns["Country"]).ItemsSource = e.Result;
For autocompletebox I'm try to use same as radcombobox inside radgridview but errors occur.
 ((GridViewDataColumn)this.radGridView.Columns["Country"]).ItemsSource = e.Result; but errors. 


My Xaml :

                      <telerik:GridViewDataColumn   Header="Nationality"  UniqueName="Nationality">
                            <telerik:GridViewDataColumn.CellTemplate>
                                <DataTemplate>
                                    <sdk:AutoCompleteBox   x:Name="txtVesselType" ValueMemberBinding="{Binding Nationality, Mode=TwoWay}" Margin="18,4,5,6" FilterMode="Contains"  />
                                </DataTemplate>
                            </telerik:GridViewDataColumn.CellTemplate>
                        </telerik:GridViewDataColumn>









1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 06 Feb 2014, 03:35 PM
Hello Naurah,

Base on your sample code, I believe that your are using the Microsoft AutoCompleteBox. Is that so ? Can you try working our RadAutoCompleteBox and verify whether you get the same behavior ?

You can find more information about this control in our online documentation on this link, and you can also see our online demo here.

I'm attaching a sample project, based on the code you have provided with implemented RadAutoCompleteBox.

Regards,
Hristo
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
GridView
Asked by
naurah
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or