1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    172
    Vote Rating
    1
    Dmoney is on a distinguished road

      0  

    Default Add listener to grid refresh

    Add listener to grid refresh


    how can I add a listener to the grid refresh and the paging buttons. I have two grids and when you select a record in the first the data relevant to that record is shown in the second. however if they refresh the first grid or page forward or backwards I need to clear the second grid.

    if it matters I'm using rowselect to catch the selection. like this :

    Code:
    myGrid.getSelectionModel().on('rowselect', handleRowSelect);

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,360
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    you can listen to the view's refresh event or the store's load event

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,503
    Vote Rating
    51
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    It's the Store's load event you want.

Similar Threads

  1. Add a listener after Render
    By albu77 in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 14 Jul 2010, 10:48 PM
  2. Store add listener
    By douggiefox in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 15 Mar 2010, 4:43 AM
  3. add Listener to TreeNode
    By jeusdi in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 11 Mar 2009, 10:53 AM
  4. how to add doubleclick listener
    By adun in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 3 Jun 2008, 11:27 PM
  5. trying to add a panel via a Listener
    By JoomlaMan in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 15 Apr 2008, 10:37 AM

Thread Participants: 2

Tags for this Thread