On Tue, Sep 22, 2009 at 09:37, Chirag Patel <[email protected]> wrote:

> Hi,
>
> I am experimenting inline editing in the virtual tree grid. The code is as
> below:
> [
> var treeVirtual = new qx.ui.treevirtual.TreeVirtual(["Tree", "Permission",
> "Accessed", "Modified"]);
> treeModel.setEditable(true);
> treeModel.setColumnEditable(2, true);
> treeModel.setColumnEditable(3, true);
>
> var desktop = treeModel.addBranch(null, "Desktop", true);
> var qooxdoohcm = treeModel.addLeaf(desktop, "qooxdoo.hcm");
> treeModel.setColumnData(qooxdoohcm, 1, "-rwxr-xr-x");
> treeModel.setColumnData(qooxdoohcm, 2, "Sept 20, 09");
> ]
>
> When the column "Permission" and "Accessed" are double clicked nothing
> happens.
> Is there something which I have missed?
>

No, it seems that cell editing in TreeVirtual may be broken. Please post a
bug to bugzilla.

One more question. I looked at class SimpleTreeDataModel. This class
> overrides sortByColumn() method to indicate that sorting is not supported by
> the tree grid.
> Does this mean that I need to extend qx.ui.table.model.Abstract class and
> implement sorting?
>

Well if you think about it... If you sort a tree, you no longer have the
hierarchical representation of the tree. It just makes no sense. That's why
sorting of the tree is specifically not supported.

Derrell
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to