Results 1 to 3 of 3

Thread: search list content in sencha architect 2

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default search list content in sencha architect 2

    I'm a noob here trying to figure out how to search a list in sencha architect 2 using MVC. I'm assuming that I would have to make the search listen for onkeyup event but I'm stuck on how to search the store that the list is using to populate itself. Could someone show a example of how this would be done?

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    145
      0  

    Default

    Get a reference to the store and then invoke the filter method.

    Because the dataview is bound to the store any changes to it will automatically be reflected.
    Aaron Conran
    @aconran

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by aconran View Post
    Get a reference to the store and then invoke the filter method.

    Because the dataview is bound to the store any changes to it will automatically be reflected.
    Thanks for the hint. The problem i was having was with the reference. After figuring out how the reference is done it works now. I had to do it this way "store = Ext.getStore('MyJsonStore');". Thanks for the help.

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
  •