Results 1 to 6 of 6

Thread: Event on Grid Panel Data rerender

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default Unanswered: Event on Grid Panel Data rerender

    What is the event that fires when the data in a DataGrid are recharged or rendered?
    For example, a DataGrid showing the results of a filtered search. Every time you click on the Search button with a different filter, the results (number of rows) of the DataGrid are different.

    - The events render(this, eOpts) and afterrender(this, eOpts) only works at first rendering, however the followings render's don't fire the event method
    Last edited by ararango; 25 Oct 2012 at 6:53 AM. Reason: Event's tested.

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    390
      0  

    Default

    In ExtJS terms, rendering is a one-time process for a component when it is initially added to the DOM.

    Try the refresh event on the grid's view:

    http://docs.sencha.com/ext-js/4-1/#!...-event-refresh

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default Dont work

    The event refresh don't fire when the dataGrid Store change

  4. #4
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    390
      0  

    Default

    Are you definitely listening on the correct component? The refresh event is on the grid's view, not the grid itself.

    Small scale changes to the data may not fire refresh. Events like itemadd, itemremove and itemupdate may help in those circumstances.

  5. #5
    Sencha User
    Join Date
    Oct 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default yes , in the view

    Yes, I define the event in the view's Grid, not in the Grid, but don't work.

    I don't think that I need to define three event's which do the same function.

  6. #6
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    390
      0  

    Default

    Could you post some code showing what you're doing? The refresh event really should cover the filtering scenario you've described.

Tags for this Thread

Posting Permissions

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