Problem with drap and drop

4 posts, 1 answers
  1. wpfdev
    wpfdev avatar
    11 posts
    Member since:
    Mar 2010

    Posted 22 Mar 2010 Link to this post

    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();

    }

    }

    }

  2. Answer
    Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 24 Mar 2010 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 24 Mar 2010 Link to this post

    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.
  5. wpfdev
    wpfdev avatar
    11 posts
    Member since:
    Mar 2010

    Posted 26 Mar 2010 Link to this post

    Thank you for your help. I have seen the problem has been fixed in your attached sample.
Back to Top