Hybrid View

  1. #1
    Touch Premium Member
    Join Date
    Jul 2011
    Location
    Helsinki, Finland
    Posts
    71
    Vote Rating
    0
    kortsi is on a distinguished road

      0  

    Default 4.1 RC3: pageSize cannot be dynamically altered

    4.1 RC3: pageSize cannot be dynamically altered


    I took the 4.1 RC3 and tested it with my apps. Most of my apps change the data store page size to match the physical size of the grid shown. This worked in 4.0, but 4.1 throws an exception:

    Code:
    Uncaught Ext.Error: pageSize cannot be dynamically altered
    How should I alter the page size in 4.1? I want the grid to show just as many rows as fits in the browser window...

    By the way, there's a typo in data/Store.js:

    Code:
    Ext.error.raise("pageSize cannot be dynamically altered");
    I suppose that should read:

    Code:
    Ext.Error.raise("pageSize cannot be dynamically altered");

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,081
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    How are you changing the size to get this error?

    Regards,
    Scott.

  3. #3
    Touch Premium Member
    Join Date
    Jul 2011
    Location
    Helsinki, Finland
    Posts
    71
    Vote Rating
    0
    kortsi is on a distinguished road

      0  

    Default


    Quote Originally Posted by scottmartin View Post
    How are you changing the size to get this error?
    Just by calculating a suitable number from the grid component's height and then:

    Code:
    store.pageSize = numberOfRows;
    store.load();

Thread Participants: 1