How to bind Data template radcombobox?

2 posts, 0 answers
  1. Kaustubh Wadi
    Kaustubh Wadi avatar
    26 posts
    Member since:
    Apr 2010

    Posted 11 May 2010 Link to this post

    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

  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 14 May 2010 Link to this post

    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.
  3. DevCraft banner
Back to Top