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

How to bind Data template radcombobox?

1 Answer 183 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kaustubh Wadi
Top achievements
Rank 1
Kaustubh Wadi asked on 11 May 2010, 07:54 AM
Hi all,
    I am developing an application in silverlight.
I have a grid view and it has a cell template radcombobox.
I want to bind this radcombobox with data in sharepoint list. I am giving xaml code here.
 Can anyone tell me how can I bind combobox in gridview?






<
grid:RadGridView x:Name="grid"   Margin="100,110,50,50" RowIndicatorVisibility="Collapsed" IsReadOnly="True" AutoGenerateColumns="False" CanUserFreezeColumns="False"  CanUserResizeColumns="False" Width="520" Height="270" > 
                <grid:RadGridView.Columns> 
                    <grid:GridViewDataColumn x:Name="Column1"  Header="Column Header" HeaderTextAlignment="Center"  Width="150" TextAlignment="Center"/>   
                      
                                             
                      
                    <grid:GridViewDataColumn x:Name="Column2" HeaderText="Header Text2" HeaderTextAlignment="Center" Width="200">  
                        <grid:GridViewDataColumn.CellTemplate> 
                            <DataTemplate> 
                                <telerikInput:RadComboBox x:Name="cbGrid" SelectedIndex="0" > 
</DataTemplate> 
                        </grid:GridViewDataColumn.CellTemplate> 
                          
                    </grid:GridViewDataColumn> 
</grid:RadGridView.Columns> 
                  
 
            </grid:RadGridView> 

Waiting for your reply.
Thanks in advance.
--Kaustubh

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 14 May 2010, 11:08 AM
Hi Kaustubh,

Please, see the following forum thread for more information and a sample application:
http://www.telerik.com/community/forums/silverlight/gridview/combobox-in-gridview.aspx

Kind regards,
Valeri Hristov
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.
Tags
ComboBox
Asked by
Kaustubh Wadi
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or