hii,
I am trying to create an application in which I want to drag an item from a treeview and drop it in radgridview with MVVM. Here I used attached command behaviour. When these drag and drop feature applied in simple code behind way it works properly. In MVVM it doesnot work.
So please give me some solution for this problem with samples.
Thanks.
Alpa.
I am trying to create an application in which I want to drag an item from a treeview and drop it in radgridview with MVVM. Here I used attached command behaviour. When these drag and drop feature applied in simple code behind way it works properly. In MVVM it doesnot work.
So please give me some solution for this problem with samples.
Thanks.
Alpa.
6 Answers, 1 is accepted
0
Hello Alpa,
Please, check this example in this blogpost - http://blogs.telerik.com/tsvyatkokonov/posts/10-12-15/using_commands_with_raddraganddropmanager_for_wpf_and_silverlight.aspx - although its in SL the same approach can be applied for WPF.
Let me know if this works for you.
Kind regards,
Tsvyatko
the Telerik team
Please, check this example in this blogpost - http://blogs.telerik.com/tsvyatkokonov/posts/10-12-15/using_commands_with_raddraganddropmanager_for_wpf_and_silverlight.aspx - although its in SL the same approach can be applied for WPF.
Let me know if this works for you.
Kind regards,
Tsvyatko
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Alpa
Top achievements
Rank 1
answered on 24 Dec 2010, 10:06 AM
Hi Tsvyatko,
Thanks for reply. But you give me sample in silverlight 4 platform and i tried this code in my application. It didnt work and giving error because of the references used was from silverlight 4 dll's. I used CommandDragDropBehaviour class from sample in my WPF application and it didnt work.
So please give me solution of this problem.
Thanks
Alpa.
Thanks for reply. But you give me sample in silverlight 4 platform and i tried this code in my application. It didnt work and giving error because of the references used was from silverlight 4 dll's. I used CommandDragDropBehaviour class from sample in my WPF application and it didnt work.
So please give me solution of this problem.
Thanks
Alpa.
0
Hello Alpa,
I have updated the blog post with WPF version of the sample. Please find the project here:http://blogs.telerik.com/Libraries/TsvyatkoKonov_Library/Wpf_CommandDragDrop.sflb
Best wishes,
Tsvyatko
the Telerik team
I have updated the blog post with WPF version of the sample. Please find the project here:http://blogs.telerik.com/Libraries/TsvyatkoKonov_Library/Wpf_CommandDragDrop.sflb
Best wishes,
Tsvyatko
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Alpa
Top achievements
Rank 1
answered on 27 Dec 2010, 11:03 AM
Hello Tsvyatko,
Thank you for your previous post. In the last post you give me a sample project in MVVM- Wpf. It work properly. But when I used that in my project in which I want to drag an item from a RadTreeView and drop it on a RadGridViw. My RadTreeView itemsource containes collection of Directory and i wanted to drag a folder or file from treeviewitem and drop it on datagrid column. And it didnt work.
So please give me some solution for these problem.
Thanks,
Alpa.
Thank you for your previous post. In the last post you give me a sample project in MVVM- Wpf. It work properly. But when I used that in my project in which I want to drag an item from a RadTreeView and drop it on a RadGridViw. My RadTreeView itemsource containes collection of Directory and i wanted to drag a folder or file from treeviewitem and drop it on datagrid column. And it didnt work.
So please give me some solution for these problem.
Thanks,
Alpa.
0
Hello Alpa,
I have modified the project to use RadTreeView and RadGridView instead. Please, check the attachment and let me know
Best wishes,
Tsvyatko
the Telerik team
I have modified the project to use RadTreeView and RadGridView instead. Please, check the attachment and let me know
Best wishes,
Tsvyatko
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Alpa
Top achievements
Rank 1
answered on 03 Jan 2011, 06:24 AM
Hello Tsvyatko,
Thank you for your reply. And this sample is worked for my application.
Thanks,
Alpa
Thank you for your reply. And this sample is worked for my application.
Thanks,
Alpa