Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#847 closed enhancement (fixed)

the TreeLoadingController does not support multiple levels of nodes

Reported by: anonymous Owned by: ilia
Priority: high Milestone:
Component: Widgets Version: 0.3
Keywords: TreeLoadingController Cc:
Blocked By: Blocking:


"TreeLoadingController?" and the "loadProcessResponse".

It would be great if the "loadProcessResponse" function could load more than one level of nodes when the response contains them. It would be faster than calling back the server.



What would be great:


Actually, the code looks like this:

var newChildren = result;

if (!dojo.lang.isArray(newChildren)) {
   dojo.raise('loadProcessResponse: Not array loaded: '+newChildren);

for(var i=0; i<newChildren.length; i++) {
  // looks like dojo.widget.manager needs no special "add" command
  newChildren[i] = dojo.widget.createWidget(node.widgetType, newChildren[i]);

It would be great if that part was called recursively as long as the newChildren contains more children


Change History (3)

comment:1 Changed 16 years ago by bill

Owner: changed from anonymous to ilia

comment:2 Changed 15 years ago by ilia

Resolution: fixed
Status: newclosed

Can be done with TreeV3

comment:3 Changed 15 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.