Results 1 to 3 of 3

Thread: Association with store

  1. #1

    Default Answered: Association with store

    Hello again guys,

    I would like to add some configuration on the association store. In this example https://fiddle.sencha.com/#fiddle/2no4 I am using rowwiget for loading nested posts data.

    I would like to add paging feature to the widget, but I need to specify the pageSize property to the association store.

    Any suggestions?

    Thank you guys.

  2. Hi,

    You need to define pageSize inside storeConfig in inverse section like below -

    inverse: {
    storeConfig: {
    pageSize: 20
    },
    role: 'posts'
    }

    You can find the fiddle below which is working fine with paging bar:
    https://fiddle.sencha.com/#fiddle/2noo&view/editor

    Hope that helps!

  3. #2
    Sencha User
    Join Date
    Oct 2018
    Location
    Noida
    Posts
    67
    Answers
    10

    Default

    Hi,

    You need to define pageSize inside storeConfig in inverse section like below -

    inverse: {
    storeConfig: {
    pageSize: 20
    },
    role: 'posts'
    }

    You can find the fiddle below which is working fine with paging bar:
    https://fiddle.sencha.com/#fiddle/2noo&view/editor

    Hope that helps!

  4. #3

    Default

    Thank you very much! That's exactly what I needed.

Similar Threads

  1. Replies: 6
    Last Post: 22 Aug 2017, 11:25 AM
  2. association not mapping into a store
    By jmcfet in forum Sencha Touch 2.x: Q&A
    Replies: 5
    Last Post: 4 Aug 2014, 3:59 PM
  3. Replies: 1
    Last Post: 13 Mar 2014, 6:20 AM
  4. Replies: 0
    Last Post: 15 Jun 2012, 1:28 PM
  5. Replies: 1
    Last Post: 19 Dec 2011, 8:36 AM

Posting Permissions

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