I have a situation in which I am dragging/dropping nodes between two XamDataTrees arranged vertically both the has lot of data and scrollbar gets enabled automatically. When I attempt to drag/drop the selected node from source tree to target tree vertically, the drop does not work. If drag horizontally outside and then drop it ( like big J) it works.
How to make it work without dragging outside horizontally
Thanks,
Hari
Hello Hari,
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I created a sample with two vertical data trees with enough data to need scrollbars. I then attempted to drag a node from the left tree and drop it in the right tree. I was able to do this successfully and when dropping on a node not currently visible, I was able to drag the dropping node to the bottom of the target tree in order to scroll the target tree and drop the node.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using version 14.2.20142.1000 in Infragistics for WPF.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if you have any questions.
Sincerely,
Valerie
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
I have changed the XAML to arrange the trees vertically and it does not work. Please change the xaml as below.
<Grid> <Grid.RowDefinitions> <RowDefinition Height="300"/> <RowDefinition Height="300"/> </Grid.RowDefinitions> <ig:XamDataTree ItemsSource="{Binding TreeSource1}" Margin="10" IsDraggable="True" IsDropTarget="True"> <ig:XamDataTree.GlobalNodeLayouts> <ig:NodeLayout TargetTypeName="TreeData" Key="Children" DisplayMemberPath="Name" /> </ig:XamDataTree.GlobalNodeLayouts> </ig:XamDataTree> <ig:XamDataTree ItemsSource="{Binding TreeSource2}" Margin="10" Grid.Row="1" IsDraggable="True" IsDropTarget="True"> <ig:XamDataTree.GlobalNodeLayouts> <ig:NodeLayout TargetTypeName="TreeData" Key="Children" DisplayMemberPath="Name" /> </ig:XamDataTree.GlobalNodeLayouts> </ig:XamDataTree> </Grid>
Hello Harinatha,
I have investigated your issue, and I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 183392. The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution.
I have created a private case, CAS-145433-L4Y3D2, in order to track this issue and notify you of any changes in its status.