SelectedItem is not binding properly

1 posts, 0 answers
  1. Shanmuga
    Shanmuga avatar
    15 posts
    Member since:
    Mar 2015

    Posted 29 Oct 2015 Link to this post

    Hi

     <telerik:GridViewDataColumn Header="Name" Width="200" ColumnGroupName="BasicInformation" x:Name="test">
    <telerik:GridViewDataColumn.CellTemplate>
    <DataTemplate>
    <telerik:RadComboBox SelectedValue="{Binding CellId}" x:Name="cbxCells1" SelectionChanged="cbxCells1_SelectionChanged"
    SelectedItem="{Binding Path=SelectedCell,Mode=TwoWay}"
    SelectedValuePath="CellId"
    ItemsSource="{Binding Path=Cells, Source={StaticResource lcgroupconfigurationModel}}"
    ItemTemplate="{StaticResource ProjectDataTemplate}"
    Command="{Binding CellSelectionChangedCommand, Source={StaticResource lcgroupconfigurationModel}}">                                                   
    </telerik:RadComboBox>
    </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>

    In my code Command="{Binding CellSelectionChangedCommand, Source={StaticResource lcgroupconfigurationModel}} is working,
    when i select any item from Combobox, the SelectedItem is not binding properly. It binding first value only.
    How to solve this?​

Back to Top