The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I am having problems enabling drag/drop from a treeview control to a gridControl (not databound). I would like to override and only allow certain nodes from the treeview to be dropped on certain columns in the grid control. Currently I can not get the grid to accept any tree node. I was actually able to grab the sample OLE Drag/Drop app and drop text from the Richtext box there onto my grid control (I had no event code at the time on my grid control). Does the control only accept text? Any suggestions on how to implement this.
ADAdministrator Syncfusion Team January 23, 2003 09:16 PM UTC
Hi Chuck,
You could either implement your own IGridDataObjectConsumer. The grid has two default IGridDataObjectConsumer objects registered for "Text" and internal grid data.
But you can add your more consumers for your own data.
See class reference for IGridDataObjectConsumer and RegisterDataObjectConsumer or let us know if you need sample code for this.
- Or -
You disable the grids default ole drop target behavior and then you just handle the ole drop target events of the Control class. You can disable the grid drop target behavoir
with
[C#]
Model.Options.ControllerOptions = Model.Options.ControllerOptions & ~GridControllerOptions.OleDropTarget;
Stefan