This question is locked. New answers and comments are not allowed.
Hi All,
I have the following code that was working in the Q3 2010 bins, but now on the Q1 2011 version (2011.1.419.1040), I cannot get drag manager QueryHandler event to fire: RadDragAndDropManager.AddDragQueryHandler(this.treeSource, OnDragQuery);
Full code:
As you can see, I am running this in a ChildWindow and as a result, I need to set:
Is the some change or some reason why this code would not be working now in the latest binaries?
Nick
I have the following code that was working in the Q3 2010 bins, but now on the Q1 2011 version (2011.1.419.1040), I cannot get drag manager QueryHandler event to fire: RadDragAndDropManager.AddDragQueryHandler(this.treeSource, OnDragQuery);
Full code:
public partial class AddEditPlaylist : ChildWindow { private AddEditPlaylistViewModel _VM; public AddEditPlaylistViewModel VM { get { return _VM; } set { _VM = value; } } public AddEditPlaylist(Playlists EditPlaylist) { InitializeComponent(); RadDragAndDropManager.AddDragQueryHandler(this.treeSource, OnDragQuery); RadDragAndDropManager.AddDragQueryHandler(this.treeViewTarget, OnDragQuery); Guid EditPlaylistId = Guid.Empty; if (EditPlaylist != null) { EditPlaylistId = EditPlaylist.PlaylistId; } this.VM = new AddEditPlaylistViewModel(EditPlaylistId); this.VM.ResultHandler = result => { if (result.HasValue) { this.DialogResult = result.Value; } }; this.DataContext = this.VM; } private void OnDragQuery(object sender, DragDropQueryEventArgs e) { if (e.Options.ParticipatingVisualRoots.Contains(this) == false) e.Options.ParticipatingVisualRoots.Add(this); } private void treeViewTarget_PreviewDragEnded(object sender, Telerik.Windows.Controls.RadTreeViewDragEndedEventArgs e) { } }As you can see, I am running this in a ChildWindow and as a result, I need to set:
e.Options.ParticipatingVisualRoots.Add(this);
In order for the PreviewDragEnded event to be fired.Is the some change or some reason why this code would not be working now in the latest binaries?
Nick
