Hy Devexpress Team,
Im using the XRDesignFieldListControl and when i start Drag something this error appears:
*** System.NullReferenceException ***
Message: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
StackTrace: bei DevExpress.XtraReports.Design.FieldListTreeView.OnItemDrag(Object sender, ItemDragEventArgs e)
bei DevExpress.XtraTreeList.Native.XtraTreeView.ItemMove(Object sender, MouseEventArgs e)
bei System.Windows.Forms.MouseEventHandler.Invoke(Object sender, MouseEventArgs e)
bei System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e)
bei System.Windows.Forms.Control.WmMouseMove(Message& m)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m)
bei DevExpress.XtraTreeList.TreeList.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Can you tell me what's wrong?
Thx,
Alex
Hello Alex,
I assume that you have somehow customized either the Field List or the Report Designer component itself, so now this issue takes place. This issue may be also related to the type of the data source object you're using as a report's data source. It would be great if you demonstrate this behavior with a sample project, so that I'm able to research it on my side.
I look forward to hearing from you.
Thanks,
Dmitry
Hy Dmitry,
I created a Simple projekt. Please let me know if you found something.(Try to move a Node)
Thx,
Alex
Hello Alexander,
We appreciate you pointing this out. I tested your solution and got the exception under v15.2.5 as well.
While we are researching this issue, would you please describe your requirements in greater detail? Maybe a standard (I mean, non-embedded) TreeList control will suit your needs? You can populate its node collection against your data source (see Data Binding Modes) and implement the required drag-n-drop operations. Please check our documentation: TreeList.CustomizeNewNodeFromOuterData Event. See also: How to reorder XtraTreeList nodes via drag-and-drop.
Thanks
Hallo Jannet,
of course a standard TreeList can solve this problem. But I wanted to inform you that an error exists here.
Thx,
Alex
We greatly appreciate that, Alexander. You'll receive a notification once we fix the problem.
Thanks