[Dojo-interest] Tree Nodes not expandable

Tanvir Refai trefai at bop.gov
Tue Feb 27 10:09:36 MST 2007


Thanks Vikas,
 The child node is rendered as a folder and it is scenario # 2. 
It looks like it doesn't even go to the server. If it is an issue with
RPC call then I don't understand that why it works on the tree node at
level 1 which is loaded initially. There is data related to that node.

>>> "Vikas Sasidharan" <vikas.sasidharan at tavant.com> 2/27/2007 11:24 AM
>>>
Tanvir,

Just to clarify, when you say "child nodes are not expandable", which
of
these two scenarios are you actually referring to:

1.	The child node is rendered as a leaf node.
2.	The child node is rendered as a folder but nothing happens when
you click on it's expand node (the "+").

(1)   would indicate that your child nodes probably have their
"isFolder" attribute set to false and are hence being rendered as
leaves. (2) would indicate some issue with the RPC call that happens
when you try to expand the child node (either no data is being fetched
or the data is invalid in some way).

 

Rgds,

Vikas

 

 

________________________________

From: dojo-interest-bounces at dojotoolkit.org 
[mailto:dojo-interest-bounces at dojotoolkit.org] On Behalf Of Tanvir
Refai
Sent: Tuesday, February 27, 2007 9:45 PM
To: dojo-interest at dojotoolkit.org 
Subject: [Dojo-interest] Tree Nodes not expandable

 

I am trying to use V3 version of Controller, selector and tree. On the
initial load I load the 1st layer of the child on the page. When I
click
the node of the child it goes to the server and brings the child
related
to the clicked node. But all the nodes loaded from the server are not
expandable or selectable. Am I missing something?

 

<div dojoType="TreeLoadingControllerV3"
RpcUrl='/zmenu/zgroup.go?method=ajaxGetGroupTree'
widgetId="addGroupController"></div>
<div dojoType="TreeSelectorV3"
eventNames="select:addGroupListSelected"
widgetId="addGroupSelector"></div>
<div dojoType="TreeEmphasizeOnSelect"
selector="addGroupSelector"></div>
<div dojoType="TreeV3" toggle="wipe" toggleDuration="100"
widgetId="addGroupTreeWidget"
listeners="addGroupController;addGroupSelector" >
    <DIV dojoType="TreeNodeV3" title="SYSDVLP" objectId="1"
widgetId="1"
isFolder="true">
           <DIV dojoType="TreeNodeV3" title="andy" objectId="2"
widgetId="2" isFolder="true">
           </DIV>
           <DIV dojoType="TreeNodeV3" title="jan" objectId="4"
widgetId="4" isFolder="false">
           </DIV>
           <DIV dojoType="TreeNodeV3" title="tasi" objectId="3"
widgetId="3" isFolder="true">
           </DIV>
   </DIV>

</div>

 

 

If I click on nodes "andy" or "jan" or "tasi" it goes to the server
and
brings all childs back. All of these child nodes are not expandable.

Please help.

 

Thanks



More information about the Dojo-interest mailing list