var item = new RadGalleryItem { Image = elementInfo.Image }; item.SetValue( RadDragAndDropManager.AllowDragProperty, true );
Thanks
5 Answers, 1 is accepted
The RadDragAndDropManager was recently improved and new functionality was added to the control. This might be the root of the issue.
You can, however, still use the old functionality of the manager, but you'll need to set the following property:
public
MainPage()
{
RadDragAndDropManager.ExecutionMode = DragExecutionMode.Legacy;
InitializeComponent();
}
However, if this suggestion doesn't help, can you please send us a sample project reproducing the issue so that we can look into it? Thank you in advance.
Greetings,
Tina Stancheva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tina,
Thanks, that fixed it.
What’s the consequence of using the legacy mode? Anything I can do to upgrade my code?
Thanks again,
Italo
Since Q2 2011 we have introduced DragDropManager which uses similar API and infrastructure as the one of the default WPF drag and drop functionality. That is why if you want to work with RadDragAndDropManager, you need to set the ExecutionMode to Lagacy, thus stating explicitly that you will use its features instead.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Thanks for the reply. Can someone please look into why dragging from an expanded ribbon gallery doesn't work? I would prefer not to use legacy code.
Thanks again,
Italo
The logic you have implemented so far using RadDragAndDropManager will be executed if you set the ExecutionMode to Legacy as mentioned previously. Otherwise, you could use DragDropManager and its API instead.
Would you clarify why the code you are using so far does not suit your needs ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>