Hello!
I'm wondering if it is possible to enable drag and drop with this component: http://www.igniteui.com/tree-grid/overview. I'm currently working on a POC and am using the sample code to spec out capabilities. I see that it's possible in other grids on the site, i just can't see any references with this particular grid.
Thanks!
Hello James,
Thank you for posting in our forum.
Are you referring to a drag and drop functionality that would allow moving the rows in the TreeGrid freely between the different levels of the hierarchy or are you referring to some other drag and drop functionality?
If you’re referring to moving of the rows via drag&drop - this functionality is currently not supported out of the box for the igTreeGrid. You can log this as a new product idea so that we may consider adding this functionality in one of our future versions.
You can suggest new product ideas for future versions (or vote for existing ones) at <http://ideas.infragistics.com>.
In general the igTreeGrid Updating feature’s API in combination with jQuery Draggable or Sortable functionalities might allow you to implement this as a custom solution over the TreeGrid. There’s a similar example with the igGrid with sortable which you can refer to here:
http://ko.infragistics.com/community/forums/t/78376.aspx
You can find an attached sample: igGrid_RowsDragAndDrop.zip in that forum thread.
In the TreeGrid if you’d like the actual hierarchical structure of the data to be affected by the moving of the rows, you can take a look at the following API methods: deleteRow , addChild .
If you’ve moved a row from some other level of the hierarchy you would need to remove it (delete it) and then add it to the appropriate new parent/level in order to keep the integrity between what’s displayed and what’s in the underlying dataSource.
I hope you’ll find this information useful. Let me know if you have any questions.
Best Regards,
Maya Kirova
Infragistics, Inc.
http://ko.infragistics.com/support