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

EventToCommand Not working Inside DataTemplate

0 Answers 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shanmuga
Top achievements
Rank 1
Shanmuga asked on 23 Oct 2015, 10:18 AM
<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>

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Shanmuga
Top achievements
Rank 1
Share this question
or