I have a StackPanel within a GridView with its InputBindings set to LeftDoubleClick as shown below.
At runtime, on double cicking it throws the following exception.
It works if the MouseAction is set to LeftClick, which I don't want to use.
It had worked with 2011-Q3.
Can someone get back with a solution for this please?
Best Regards,
Gajan
<TelerikGW:RadGridView x:Name="radGridView" Grid.Row="2" ItemsSource="{Binding SearchResult.Results}" ScrollViewer.HorizontalScrollBarVisibility="Visible" MinWidth="50" HorizontalAlignment="Stretch" > <TelerikGW:RadGridView.Columns> <TelerikGW:GridViewDataColumn Width="*" MinWidth="50"> <TelerikGW:GridViewDataColumn.Header> <Label Content="Found" /> </TelerikGW:GridViewDataColumn.Header> <TelerikGW:GridViewColumn.CellTemplate> <DataTemplate> <StackPanel Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Horizontal" > <StackPanel.InputBindings> <MouseBinding Command="{Binding Path=ResultClick}" MouseAction="LeftDoubleClick" /> </StackPanel.InputBindings> <Image Height="20" MaxWidth="100" Margin="0" Source="{Binding ClassIcon.ContentBytes}" Stretch="Uniform" /> <WV:TextHighLighter Margin="10" ToolTip="{Binding ResultItem.MatchTerm}" Padding="0" Text="{Binding Path=ResultItem.MatchTerm}" TextToHighLight="{Binding DataContext.SearchedTerm, RelativeSource={RelativeSource AncestorType=WV:GlobalSearch}}" /> </StackPanel> </DataTemplate> </TelerikGW:GridViewColumn.CellTemplate> </TelerikGW:GridViewDataColumn> </TelerikGW:RadGridView.Columns></TelerikGW:RadGridView>
At runtime, on double cicking it throws the following exception.
[System.InvalidCastException] = {"Unable to cast object of type 'System.Windows.Documents.Run' to type 'System.Windows.FrameworkElement'."}Message = "Unable to cast object of type 'System.Windows.Documents.Run' to type 'System.Windows.FrameworkElement'."Source = "Telerik.Windows.Controls.GridView"StackTrace = " at Telerik.Windows.Controls.GridView.GridViewRow.ShouldHandleMouseDoubleClick(MouseButtonEventArgs e)\r\n at Telerik.Windows.Controls.GridView.GridViewRow.OnMouseDoubleClick(MouseButtonEventArgs e)\r\n at System.Windows.Controls.Control.HandleDouble...It works if the MouseAction is set to LeftClick, which I don't want to use.
It had worked with 2011-Q3.
Can someone get back with a solution for this please?
Best Regards,
Gajan
