Results 1 to 4 of 4

Thread: Show only some elements of the store in the grid.

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    5
    Vote Rating
    0
      0  

    Default Answered: Show only some elements of the store in the grid.

    Hey there,

    i've got an array of indizes from elements in a store. Is there any opportunity or function to show only these elements in the grid without modifying store?

    Thanks for helping,
    Huggy.

  2. The grid will show what's in the store so you would have to filter out those from the store that you don't want to show.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    The grid will show what's in the store so you would have to filter out those from the store that you don't want to show.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Mar 2011
    Posts
    5
    Vote Rating
    0
      0  

    Default

    Thanks for replying.

    So, I've to remove the unwanted elements form the store and if I want to show all again, I'll need to reload it, right?

  5. #4
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
      0  

    Default

    Check the API docs for Ext.data.Store.filter and Ext.data.Store.filterBy.

Posting Permissions

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