>
> Date: Thu, 24 Sep 2009 09:00:28 -0400
> From: Derrell Lipman <[email protected]>
> Subject: Re: [qooxdoo-devel] Help on virtualtree inline editing
> To: qooxdoo Development <[email protected]>
> Message-ID:
> <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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.
>
Thanks for your reply. I looked at the source code of TreeVirtual. By
default the property showCellFocusIndicator is set to false. When a cell is
clicked the focus indicator is used to calculate width/height of the cell
editor. Because showCellFocusIndicator is set to false the width/height is
-4 and as a result the editor is not displayed.
After setting the property showCellFocusIndicator to true the editor is
getting displayed but it is not getting closed when mouse is clicked on
other cell. It behaves erratically.
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.
I agree but I was looking for a feature which is demonstrated at
http://www.dhtmlx.com/docs/products/dhtmlxTreeGrid/samples/03_nodes_rows_manipulations/03_treeGrid_basic.html
Derrell
>
Thanks
Chirag
------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel