Results 1 to 3 of 3

Thread: single store multiple grids different filters

  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    178
    Answers
    2

    Default single store multiple grids different filters

    Is it possible to share the same store for multiple grids but to have a fixed local filter on a status column that is different for each grid.

    ie grid 1 status = 1
    grid 2 status = 2
    grid 3 status = 3

    the filters would have to be fixed and ideally would by filtered on a status column that is not even present in the grid. It is present in the store.

    changes to the store should update all 3 grids.

    Any suggestions / starting points?

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,255
    Answers
    759
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha User Cisco Kid's Avatar
    Join Date
    Apr 2017
    Location
    San Jose, CA
    Posts
    6

    Default One Model, One Store Filtered Differently to Two Instances

    I have some questions:
    1. In your example, Model extends KitchenSink.model.Base (but I do not see that file??) What in that file?
    2. In your example, you are using get Data, my data comes from an expensive query I want to only run once, how would I handle that so the stores auto update once the data comes back from the request.

Tags for this Thread

Posting Permissions

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