Results 1 to 3 of 3

Thread: 4.1 RC3: pageSize cannot be dynamically altered

  1. #1
    Touch Premium Member
    Join Date
    Jul 2011
    Location
    Helsinki, Finland
    Posts
    73
    Vote Rating
    1
      0  

    Default 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,388
    Vote Rating
    499
      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
    73
    Vote Rating
    1
      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();

Posting Permissions

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