Drag-n-drop from tree to grid UserData gone

I’m using Mercy copy of tree node to grid, drop and drag is enabled and I have a treeToGridElement function, however the UserData is blank when checking the value by setting a breakpoint in the code. What am I missing?

dhtmlXGridObject.prototype.treeToGridElement = function (tree, treeID, gridID) {
var nDragType = this.getUserData(treeID, “type”);
var z = [tree.getItemText(treeID)]; // set tree text as a value of the first column in the grid
return z;

Answering my own question, the UserData is on the tree object of course not this, duh…