Login Register

dwr

dijit.Tree and dynamic data from DWR

Hi,

I'm currently porting a project from dojo 0.3 to 1.1.1. We use some trees that are dynamicaly loaded with data from the server, bij DWR services. In 0.3 it was easy to connect to the expand events, load data with DWR and create and add treenodes to the tree. This is essentially what we did in 0.3 (not real code, just to explain my case):


onOpened: function(openedNode) {
var callback = function(subItems) {
dojo.lang.forEach(subItems, function(subItem) {
var newChild = dojo.createWidget("TreeNode", {//create subNode here//});

Syndicate content