PDA

View Full Version : ITEMCLICK of GRIDSTORE from TREESTORE



EXTDEV007
13 Feb 2014, 7:05 PM
I have a Treestore built from Gridstore.

There is a listener for itemdblclick on the gridstore, which opens form in the side panel. I need to accomplish the same for tree as well.
So i built a listener for the tree and since both have the same data (not same stores though),can i do a find of child node by name in the grid store and automatically do the itemdblclick of that node from here?

Initially, I copied the function from gird and copied to the tree, but the record in Grid listener is having more data when compared to the tree node record.I couldn;t use it that way, so i'm trying to see if there is any other way to access the gridstore from itemdblclick of treestore and do the same.

mdnaveed42
13 Feb 2014, 9:52 PM
To access the gridstore from itemdblclick of treestore and do the same.


Ext.ComponentQuery.query('#gridId')[0].getStore() // gives you grid store
store filter method can be used to filter the data...


Thanks,
Md Naveed
\m/