PDA

View Full Version : How to add keyListener in TreeGrid



livinglegends
27 Aug 2009, 12:14 AM
Hi,

I am using TreeGrid (ext-gwt 2.0.1) component in my application and it is working fine.
But I am unable to add KeyListener in TreeGrid. I have multiple rows in TreeGrid.

I have one button say "Edit" in form. When user click on it, it should display information of selected row of TreeGrid. But when I navigate TreeGrid using navigation keys (keyboard), it is not giving value of selected row. But it gives value of row which I have selected by clicking on it by mouse. So, please guide me how to add key listener.

I have one node with 10 children in it. When I select any child node, I also want to get parent node also. How to achieve this?

Hope, I am clear here with my problem. Kindly let me know if you have any ways to get it resolved.