PDA

View Full Version : TreeGrid: Click on links in TreeNode



Chau
19 Feb 2010, 4:36 AM
I'm trying to add a click event (to handle links) to some of my nodes in a Ext.ux.tree.TreeGrid.

I recieve my data through a javascript control, which recieves it from different servers. Thus I have build a JSON data collection which I append to the root node of the TreeView. The links are placed as text in one of the columns in a treeNode:

<a href="...">Link</a>Clicking on the link is interupted by ExtJs somehow (debugging the event seems to bypass this interuption though). This is why I try to add the click event handler to the treeNode.

According to jsakalos in http://www.extjs.com/forum/showthread.php?t=89460 this cannot be done through JSON.

My questions are:


Why can't I use the normal <a>...</a> for links in the TreeGrid?
How can I implement a click event handler on my tree nodes?