• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[HELPED] Valence.plugin.PagingToolbarSlider() ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [HELPED] Valence.plugin.PagingToolbarSlider() ?

    Need an explanation of what is actually happening when this gets executed as part of a grid when the user does paging.
    Is the slider reading from the local copy of the store?
    or is it going to the back end to re-execute the sql statement and the "action" in the RPG code is getting executed again?

    Code:
        buildDockedItems: function() {
    		return [{
    			xtype: 'pagingtoolbar',
    			dock: 'bottom',
    			pageSize: 25,
    			displayInfo: true,
    			store: 'AP1099s',
    			plugins: [new Valence.plugin.PagingToolbarSlider()]
    		}];
    
    	}
    The reason I ask is because in the sub-procedure that prepares the sql statement, I am running other code the preps the file to have the SQL run against. I only want the code executed one time on the initial load of the store.

  • #2
    It goes to the back-end. Open up your debugging tools and watch for network traffic as you change the page...you will see the calls being made.

    Comment


    • #3
      I'd add a flag indicating when you want to initialize the data and when you just want to read a page.

      Comment


      • #4
        I would think I need a flag somewhere, but...... when the user clicks on the Valence.plugin.PagingToolbarSlider, there's nothing in my controller that gets executed for me to trap the event in order to know they did that.

        If there is a way, I have no clue what it is.

        Comment


        • #5
          beforeload on your store

          Comment

          Working...
          X