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

Problem with drap and drop

3 Answers 45 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
wpfdev
Top achievements
Rank 1
wpfdev asked on 22 Mar 2010, 11:21 AM
I have the below xaml code, when I tried to drap and drop the Food Categories to anywhere under the Sports Categories, the Pizza and Pasta sub items lost their left indent under the Food Categoeis. Basically, what I mean is when I drap and drop one root level of treeview item to anywhere under another treeview root item, the layout turned out to be not as expected.

Below is my code, could you please try what I described above and see that happens? Thanks.

<

 

Window x:Class="TreeView.Window1"

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

Title="Window1" Height="500" Width="800"

 

 

xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation">

 

 

 

<Grid>

 

 

 

<telerikNavigation:RadTreeView Margin="46,54,32,108" Name="radTreeView1" IsTriStateMode="False" IsDragDropEnabled="True" IsEditable="True">

 

 

 

<telerikNavigation:RadTreeViewItem Header="Sport Categories">

 

 

 

<telerikNavigation:RadTreeViewItem Header="Football">

 

 

 

<telerikNavigation:RadTreeViewItem Header="Futsal"/>

 

 

 

<telerikNavigation:RadTreeViewItem Header="Soccer"/>

 

 

 

</telerikNavigation:RadTreeViewItem>

 

 

 

<telerikNavigation:RadTreeViewItem Header="Tennis"/>

 

 

 

<telerikNavigation:RadTreeViewItem Header="Cycling"/>

 

 

 

</telerikNavigation:RadTreeViewItem>

 

 

 

<telerikNavigation:RadTreeViewItem Header="Food Categories">

 

 

 

<telerikNavigation:RadTreeViewItem Header="Pizza"/>

 

 

 

<telerikNavigation:RadTreeViewItem Header="Pasta"/>

 

 

 

</telerikNavigation:RadTreeViewItem>

 

 

 

</telerikNavigation:RadTreeView>

 

 

 

</Grid>

 

</

 

Window>

 



using

 

System;

 

using

 

System.Collections.Generic;

 

using

 

System.Linq;

 

using

 

System.Text;

 

using

 

System.Windows;

 

using

 

System.Windows.Controls;

 

using

 

System.Windows.Data;

 

using

 

System.Windows.Documents;

 

using

 

System.Windows.Input;

 

using

 

System.Windows.Media;

 

using

 

System.Windows.Media.Imaging;

 

using

 

System.Windows.Navigation;

 

using

 

System.Windows.Shapes;

 

namespace

 

TreeView

 

{

 

/// <summary>

 

 

/// Interaction logic for Window1.xaml

 

 

/// </summary>

 

 

public partial class Window1 : Window

 

{

 

public Window1()

 

{

InitializeComponent();

}

}

}

3 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav
Telerik team
answered on 24 Mar 2010, 06:22 PM
Hi wpfdev,

Thank you for reporting this issue. I confirmed that this indeed happens.

There was an issue with the item's indentation when a hierarchy of items is moved in the TreeView.

We managed to discover and fix the issue. I am attaching a project with the updated assemblies where the issue should not be present anymore.

Your Telerik Points have been updated for your feedback.

Greetings,
Miroslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Miroslav
Telerik team
answered on 24 Mar 2010, 06:25 PM
Hello wpfdev,

I forgot to mention that the fix will be available in the internal build this Friday and of course in the coming SP1 release.

Greetings,
Miroslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
wpfdev
Top achievements
Rank 1
answered on 26 Mar 2010, 10:28 AM
Thank you for your help. I have seen the problem has been fixed in your attached sample.
Tags
TreeView
Asked by
wpfdev
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
wpfdev
Top achievements
Rank 1
Share this question
or