Hello,

I am using the following code (method) to delete a node from TreeVirtual:

/**
 *  Deletes given node from tree.
 *
 *  @param node {Object}
 *      Reference to node object that should be deleted.
 */
deleteNode : function(node) {
    if (node) {
        var dataModel = this.getDataModel();
        this.nodeSetSelected(node, false);
        if (node.parentNodeId > 0) {
            this.nodeSetSelected(node.parentNodeId, true);
        }
        dataModel.prune(node, true);
        dataModel.setData();
        if (this.getSelectionMode() !==
qx.ui.treevirtual.TreeVirtual.SelectionMode.NONE) {
            this.createDispatchDataEvent("changeSelection",
this.getSelectedNodes());
        }
    }
},

Best regards,
Dioc

-- 
View this message in context: 
http://www.nabble.com/How-to-delete-an-item-from-a-TreeVirtual-tf4440851.html#a12671073
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to