Results 1 to 2 of 2

Thread: ITEMCLICK of GRIDSTORE from TREESTORE

  1. #1
    Sencha User
    Join Date
    Feb 2014
    Posts
    7
    Answers
    1
    Vote Rating
    0
      0  

    Default ITEMCLICK of GRIDSTORE from TREESTORE

    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.

  2. #2
    Ext JS Premium Member
    Join Date
    Jul 2011
    Location
    Hyderabad, India
    Posts
    99
    Answers
    15
    Vote Rating
    23
      0  

    Default

    Quote Originally Posted by EXTDEV007 View Post
    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/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •