Re: [qooxdoo-devel] nodeId missing in a TreeVirtual

2007-09-28 Thread dperez
It works! Applied your patch both to legacy 0.7 branch and trunk Derrell Lipman wrote: > > Ok, ease-of-use and lack of confusion trumps a bit of extra memory. > David, > please try the attached (untested) patch and let me know how it works. > Note > that this is against legacy_0_7_x to which

Re: [qooxdoo-devel] nodeId missing in a TreeVirtual

2007-09-27 Thread Derrell Lipman
On 9/27/07, Derrell Lipman <[EMAIL PROTECTED]> wrote: > > Your code you provided didn't call that method, but it's true that you > can't call it on nodes whose parent is not opened. > > I'm trying to decide if the correct solution here is to document that you > can't call nodeToggleOpened() (and mo

Re: [qooxdoo-devel] nodeId missing in a TreeVirtual

2007-09-27 Thread Derrell Lipman
On 9/27/07, dperez <[EMAIL PROTECTED]> wrote: > > > > Now I'm not getting an exception inside nodeToggleOpened because of a > missing nodeId. > Your code you provided didn't call that method, but it's true that you can't call it on nodes whose parent is not opened. I'm trying to decide if the cor

Re: [qooxdoo-devel] nodeId missing in a TreeVirtual

2007-09-27 Thread dperez
Thanks Derrell, Here is the running code: var mod = tree.getDataModel(), dat = mod.getData(); for (var i = 0; i < dat.length; i++) { var d = dat[i]; if (d && d.columnData && d.columnD

Re: [qooxdoo-devel] nodeId missing in a TreeVirtual

2007-09-27 Thread Derrell Lipman
On 9/27/07, dperez <[EMAIL PROTECTED]> wrote: > > > Thanks Derrell for your quick answer. > What I'm trying to do is on load to select initially an item. > This is the code: > > var mod = tree.getDataModel(), dat = mod.getData > (); > for (var i = 0;

Re: [qooxdoo-devel] nodeId missing in a TreeVirtual

2007-09-27 Thread dperez
Thanks Derrell for your quick answer. What I'm trying to do is on load to select initially an item. This is the code: var mod = tree.getDataModel(), dat = mod.getData(); for (var i = 0; i < dat.length; i++) { var d =

Re: [qooxdoo-devel] nodeId missing in a TreeVirtual

2007-09-27 Thread Derrell Lipman
On 9/27/07, dperez <[EMAIL PROTECTED]> wrote: > > > I have some treevirtual with data in it. > With the debugger I've checked that a node inside a closed node, doesn't > have a nodeId in its node structure. Is this normal? > > I think this didn't use to happen with versions prior to 0.7.2 > Any in

[qooxdoo-devel] nodeId missing in a TreeVirtual

2007-09-27 Thread dperez
Hi, I have some treevirtual with data in it. With the debugger I've checked that a node inside a closed node, doesn't have a nodeId in its node structure. Is this normal? I think this didn't use to happen with versions prior to 0.7.2 Any info will be greatly appreciated. Thanks in advance. Reg