Results 1 to 2 of 2

Thread: Remote filter list values reaload/renew object

  1. #1
    Sencha User
    Join Date
    Nov 2017
    Location
    Mexico
    Posts
    7
    Answers
    2
    Vote Rating
    0
      0  

    Default Answered: Remote filter list values reaload/renew object

    Hi All.

    I created a filter column that get it's values from a remote store and it works fine, but when the grid's store is reloaded, the filter keeps it's old values (if it was previously loaded).
    How do I delete/cancel those previous values? (causing a reload if the user try to filter again) or, how do I assign a new store to the filter?

    Code:
    {
    text: "My column",
    dataIndex: 'my_column',
    filter: {
      type: 'list',
      store: Ext.create('App.store.myListStore'),
      idField: 'id',
      labelField: 'label'
    }

    Thanks in advance.

  2. Solved. I changed the above to this:

    Code:
    
    filter: {
       type: 'list',
       //store: Ext.create('App.store.myStore'),
       idField: 'value',
       labelField: 'name'
    },
    listeners: {
               boxready: function (_this) {
                     _this.filter.store = _this.lookupViewModel().getStore('myStoreId');
       }
     }

  3. #2
    Sencha User
    Join Date
    Nov 2017
    Location
    Mexico
    Posts
    7
    Answers
    2
    Vote Rating
    0
      0  

    Default

    Solved. I changed the above to this:

    Code:
    
    filter: {
       type: 'list',
       //store: Ext.create('App.store.myStore'),
       idField: 'value',
       labelField: 'name'
    },
    listeners: {
               boxready: function (_this) {
                     _this.filter.store = _this.lookupViewModel().getStore('myStoreId');
       }
     }

Similar Threads

  1. Grid list filter with all remote values
    By srajakumar in forum Ext 5: Q&A
    Replies: 11
    Last Post: 13 Jun 2017, 4:38 AM
  2. Bug (?) with remote filter of type list
    By ElRatonDeFuego in forum Ext 6: Bugs
    Replies: 4
    Last Post: 7 Jun 2017, 5:49 AM
  3. Create remote list filter for a grid?
    By froamer in forum Sencha Architect 3.x: Q&A
    Replies: 5
    Last Post: 7 Apr 2015, 9:43 AM
  4. list filter from remote
    By matc1 in forum Ext: Discussion
    Replies: 2
    Last Post: 21 Jul 2014, 7:42 AM
  5. Remote List Filter: HTTP Proxy sending garbage value as a filter
    By prabhat2486 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 7 Aug 2012, 12:12 PM

Posting Permissions

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