EventToCommand Not working Inside DataTemplate

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

    Posted 23 Oct 2015 Link to this post

    <telerik:GridViewDataColumn Header="Node Name" Width="200" ColumnGroupName="BasicInformation" x:Name="test">
                                            <telerik:GridViewDataColumn.CellTemplate>
                                                <DataTemplate>
                                                    <telerik:RadComboBox VerticalAlignment="Center" ItemsSource="{Binding Path=Cells,Source={StaticResource lcgroupconfigurationModel}}"
                                                                         SelectedValuePath="CellId" SelectedItem="{Binding Path=SelectedCell,Mode=TwoWay}"
                                                                         x:Name="cbxCells1" >
                                                        <telerik:RadComboBox.ItemTemplate>
                                                            <DataTemplate>
                                                                <TextBlock Text="{Binding Path=CellName}"></TextBlock>
                                                            </DataTemplate>
                                                        </telerik:RadComboBox.ItemTemplate>
                                                        <i:Interaction.Triggers>
                                                            <i:EventTrigger EventName="SelectionChanged">
                                                                <commands:EventToCommand Command="{Binding Path=CellSelectionChangedCommand}" ></commands:EventToCommand>
                                                            </i:EventTrigger>
                                                            <i:EventTrigger EventName="DropDownOpened">
                                                                <commands:EventToCommand Command="{Binding Path=DropDownOpenedCommand}" ></commands:EventToCommand>
                                                            </i:EventTrigger>
                                                        </i:Interaction.Triggers>
                                                    </telerik:RadComboBox>
                                                </DataTemplate>
                                            </telerik:GridViewDataColumn.CellTemplate>
                                            
                                        </telerik:GridViewDataColumn>
Back to Top