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

Bind a RadComboBox inside RadGridivew

2 Answers 69 Views
GridView
This is a migrated thread and some comments may be shown as answers.
raghul
Top achievements
Rank 1
raghul asked on 29 Nov 2011, 05:06 PM
Hi,

I need to bind a combobox which is present inside the RadGridView, I need to know as how to find the child control inside the RadGridView.
Please find my attached Codings.
<telerik:RadGridView.Columns>
                        <telerik:GridViewColumn Header=" " Width=".02*" UniqueName="Select">
                            <telerik:GridViewColumn.CellTemplate>
                                <DataTemplate>
                                    <CheckBox  Name="chkSelect"/>
                                </DataTemplate>
                            </telerik:GridViewColumn.CellTemplate>
                         </telerik:GridViewColumn>
                                <telerik:GridViewColumn Header="CategoryWise" UniqueName="CategoryWise" Width=".4*" >
                                    <telerik:GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <telerik:RadComboBox Name="cboCategoryWise" IsReadOnly="True" IsEditable="False" ItemsSource="{Binding CategoryID}"
                                                                 ></telerik:RadComboBox>
                                        </DataTemplate>
                                    </telerik:GridViewColumn.CellTemplate>
                                </telerik:GridViewColumn>
                       </telerik:RadGridView.Columns>

How should I find the radcombobox which is present inside the Gridview and bind the list to it??

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 29 Nov 2011, 05:25 PM
Hello Raghul,

How about using a GridViewComboBoxColumn ?


Best wishes,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
raghul
Top achievements
Rank 1
answered on 30 Nov 2011, 02:14 AM
Since I need to have selecteindexchange event to fire I cannot use GridviewComboboxcolumn
Tags
GridView
Asked by
raghul
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
raghul
Top achievements
Rank 1
Share this question
or