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 = dat[i];
if (d && d.columnData && d.columnData[1] ==
goToItem) {
while (1) {
var parent = d.parentNodeId;
if (!parent) {
break;
}
d = dat[parent];
if (!d.bOpened) { // HERE IS
WHERE I'M FINDING d.nodeId==null
tree.nodeToggleOpened(d);
}
}
var row = mod.getNodeRowMap()[i];
if (row != null) {
tree.getSelectionModel().setSelectionInterval(row, row);
//tree.scrollCellVisible(0,
row);
}
break;
}
Probably I will have to open first the ancestors that are less nested.
Derrell Lipman wrote:
>
> 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 info will be greatly appreciated.
>>
>
> Hi David,
>
> Yes, this is normal behavior and is unchanged from previous versions. The
> nodeId field is used internally for dispatching events. It is only set in
> a
> node when the node is rendered, as only rendered nodes ever generate
> events.
>
> What are you trying to do? Maybe I can suggest an alternative method of
> accomplishing it.
>
> Cheers,
>
> Derrell
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://www.nabble.com/nodeId-missing-in-a-TreeVirtual-tf4528232.html#a12921463
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel