[CLOSED] Store Listener: Refresh Issue

  1. #1

    [CLOSED] Store Listener: Refresh Issue

    I have run into a odd issue in my code and was able to duplicate it in one of your examples with a modification. I am not sure if I am doing something wrong or if there is a bug.

    Use the GridPanel -> Plugins -> GridFilters_Remote example and add the following listener to the store:

       <Refresh Handler="#{GridPanel1}.getSelectionModel().select(0);" />
    I was attempting to select the first index in the grid when the store is refreshed.

    Now run the example and perform the following:

    • Launch Example - Grid is correct with "3m Co" selected
    • Sort on Date column: Grid is correct with "International Business Machines" selected
    • Filter on Company column using "The": Grid is correct with "The Home Depot, Inc" selected
    • Sort on Date column again: Error, Error ...

    A javascript RangeError: Maximum call stack size exceeded is raised.

    Any thoughts?
    Last edited by Daniil; Dec 13, 2014 at 9:33 PM. Reason: [CLOSED]
  2. #2
    Hi Chris,

    Please use:
    <Refresh Handler="#{GridPanel1}.getSelectionModel().select(0);" Buffer="10" />
  3. #3
    Great. Need to look throughout my code to see where else this might be applied. Please close the thread.
  4. #4
    Buffer="10" does the two jobs. At first, it delays executing of the handler for 10 milliseconds. It should guarantee that the handler - selecting a row - won't be executed too early. At second, the handler executes once for sure even if the event fires more times than one in a row for some reason.

Similar Threads

  1. GridPanel Refresh data issue
    By Miyo in forum 2.x Help
    Replies: 1
    Last Post: Jul 09, 2014, 7:05 PM
  2. Postback Refresh issue
    By accessyourbiz in forum 1.x Help
    Replies: 2
    Last Post: Jul 23, 2010, 5:51 PM
  3. [CLOSED] [1.0] Radio Check Listener issue
    By state in forum 1.x Premium Help
    Replies: 3
    Last Post: Dec 18, 2009, 10:17 AM
  4. 1.0 store listener commitdone
    By [WP]joju in forum 1.x Help
    Replies: 0
    Last Post: Dec 08, 2009, 9:02 AM
  5. Store Listener - Only if Store not empty?
    By Tbaseflug in forum 1.x Help
    Replies: 4
    Last Post: Feb 24, 2009, 1:50 PM

Posting Permissions