View Full Version : How to expand and collapse TreeGrid using keyboard

23 Jun 2009, 10:26 PM

I am using TreeGrid in my project. I am facing two issues in TreeGrid.

1. How to expand node in TreeGrid using Right Navigation key of Keyboard and collapse using Left Navigation key of Keyboard. Same functionality we had in TreeTable. So, how to achieve same in TreeGrid?

2. I have one button "Add" in form with TreeGrid which when I click on it, it open form with some textfeilds. When I enter proper data in form, it will add entered data as a child of selected node of TreeGrid. Now, I want to expand selected node automatically after inserting child under it. How, to do it in TreeGrid?

Please, revert me with the solutions of above two issues. Please ping me if you have any confusion in my question or need more information.

Note: Actually I have posted above question in thread http://extjs.com/forum/showthread.ph...d=1#post347362 (http://extjs.com/forum/showthread.php?p=347362&posted=1#post347362) but didn't get any reply so asking you personally.

Actually, before TreeGrid I was using TreeTable where I was facing issue mentioned in above thread's first question. After that I migrated to TreeGrid but facing above problems.

Please guide me.

Thanks ,