Creating a dojo treegrid using the example from Brad Balassatis: "Create a Categorized Dojo TreeGrid in XPages"
The grid is created, but how do have a onClick event on the row or grid?
i try to use the below function but i get error :Uncaught ReferenceError: item is not defined
var grid = new dojox.grid.TreeGrid({
treeModel: treeModel,
structure: layout,
showRoot: true,
onClick: test(item, node, evt)
}, 'treeGrid');
function test (item, node, evt){
var id=jsonStore.getValue(dijit.getEnclosingWidget(node).item, docId);
alert("Execute of node " + id)
}