3 Answers, 1 is accepted
Thank you for your feedback . This appears to be a bug in the RadTreeView . I logged it in our PITS system where it will be published in the next 24 hours. I also updated your Telerik points.
However, there is a workaround. Supposing your RadTreeView is named radTreeView the following code should work fine:
private
void
radTreeView_MouseDoubleClick(
object
sender, MouseButtonEventArgs e)
{
radTreeView.SelectedContainer.BeginEdit();
}
Please let me know if you need more info, I would be glad to assist you.
Sincerely yours,
Petar Mladenov
the Telerik team
Hi,
We are facing issue in Editing RadTreeView node on mouse double click after upgrading the telerik version. It was working in previous version.
Code Behind
private void radTreeView_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
RadTreeView trv = new RadTreeView();
trv = (RadTreeView)e.Source;
trv.SelectedContainer.BeginEdit();
}
Xaml:
<telerik:RadTreeView x:Name="radTreeView"
ItemsSource="{Binding}"
ItemTemplate="{StaticResource itemTemplate}"
IsDragDropEnabled="True" IsEditable="True" MouseDoubleClick="radTreeView_MouseDoubleClick"
ItemEditTemplate="{DynamicResource EditShowTemplate}">
<telerik:RadTreeView.Resources>
<DataTemplate x:Key="EditShowTemplate">
<StackPanel Orientation = "Horizontal" >
<CheckBox Margin="0" IsChecked="{Binding CanDrag, Mode=TwoWay}" ToolTip="Is Network Owned"/>
<TextBox Margin="10" FontSize="12" FontFamily="Arial" Text="{Binding Header, Mode=TwoWay}"/>
</StackPanel>
</DataTemplate>
</telerik:RadTreeView.Resources>
</telerik:RadTreeView>
Above functionality working using F2 key press. But when we use mouseDoubleClick event it fire the event but not not stay in Edit mode.
However, If we use " <StackPanel Orientation = "Vertical" >" for Edit DataTemplate it works, But we want orientation as "vertical" as per design.
I tested your code but I wasn't able reproduce the issue. I already replied to your post in the other forum. Can you check it out?
Regards,
Martin Ivanov
Progress Telerik