Hello Infragistics,
what would be the best way to achieve the following?
I want to drag file(s) from Windows Explorer over a XamDataTree instance in a WPF app and be able to drop them on specific nodes.If I move the mouse to the lower or upper edge of the XamDataTree panel, the tree should scroll down or up, respectively, as long as I keep the mouse at that position.
The important part is the second sentence because I couldn't find a suitable method for programmatic scrolling in the XamDataTree library (ScrollNodeIntoView was the only related method that I found).
I figured that I cannot use the Infragistics Drag-and-Drop framework because this only works within the same application.
Note: I am not asking for a ready-made solution (although I wouldn't mind one) because I successfully implemented the same behavior for the standard WPF ListBox recently. My question is mainly about the best way to achieve programmatic scrolling with XamDataTree. I can probably do the rest on my own if I know.
Hi Tjark,
Thank you for your post. I was looking into your requirement and I was trying to scroll the XamDataGrid by changing the value of its scrollbar but without any success. I have logged this behavior in our internal tracking system with a Development ID of 186000.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 will leave this case open and update you with this information after the review. You can also continue to send updates to this case at any time.
You can view the status of all development issues connected to this case from the "Development Issues" tab, when viewing this case on the "My Support Requests" page of our website.
XamDataTree ;)
Thanks for your reply.
By the way: If a manual scrolling facility is not an option, I would be just as grateful for a hint on how I can achieve what I described in my first post (drop files from Windows Explorer on specific tree nodes, but scroll the tree during the drag process if the mouse reaches the tree panel boundaries).
I already thought about continuously searching for the next node that would come into into view, then use ScrollNodeIntoView() to actually bring it into view and repeat that process until the user moves the mouse away from the panel boundaries. I haven't tried it though because I doubt that it will result in a smooth scroll animation.
Thank you for your reply. Our development team provided a public method to update the nodes panel when setting value for the Scrollbar of the XamDataTree:
InvalidateScrollPanel(bool reset)
which will be available in our upcoming Service Release.
Scrolling the XamDataTree automatically when the file from Windows Explorer is to the lower/upper edge is currently not possible because XamDataTree control use the Infragistics Drag&Drop nad you are using the Microsoft WPF one. My suggestion is to submit a new product idea for this functionality at ) at <http://ideas.infragistics.com>.
There are many benefits to submitting a product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for contacting Infragistics.
Hi Yanko,
am I understanding correctly that I can now simply set the scrollbar position and call InvalidateScrollPanel(bool reset) afterwards to scroll the tree from within my code?
Thanks,
Tjark
Thank you for your reply. Yes, you will be able to do that using our upcoming Service Release.
Let me know, if you need any further assistance on this matter.
OK great. Thanks a lot.
Hello Tjark,
We have shipped out a new service release where your issue is resolved. I'd be glad to find out if you had tested it out and if it had met your requirements.
You can download the Service Releases by logging to our web site and going to Account\My Keys and Downloads.