1. #1
    Sencha User
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    19
    Vote Rating
    0
    wqjh7809 is on a distinguished road

      0  

    Default Paging: Load total-property manually

    Paging: Load total-property manually


    Hello, I've got a problem in ExtJS 4.1: I'm using a AJAX proxy with a JSON reader, but the JSON result doesn't contains a total property. For the total number of records I'm using a function with a SOAP request. How can I use this number for the store to run the paging toolbar?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    7,185
    Vote Rating
    194
    scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold

      0  

    Default


    You should be able to update using:

    Code:
    	var button = new Ext.Button({
    		text: 'SET totalCount',
    		width: 150,
    		renderTo: Ext.getBody(),
    		handler: function() {
    			store.totalCount = 51;
    			pagingToolbar.onLoad();
    			console.log(store.totalCount);
    		}
    	});
    Scott.

Tags for this Thread