1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    5
    Vote Rating
    2
    rmaas is on a distinguished road

      0  

    Default Unanswered: Remove a single filter from a store which has multiple filters

    Unanswered: Remove a single filter from a store which has multiple filters


    Hey guys,

    I have a store with multiple filters, how can i remove a single one of them instead of using store.clearFilter(), which ofcourse clears all of them?
    Can't find anything in the docs or any other examples (was expecting removeFilter() or something)..

    Thanks in advance,

    rmaas

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Remove filters and filter the store again.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    5
    Vote Rating
    2
    rmaas is on a distinguished road

      0  

    Default


    Thanks for your reply, i figured there would be a function for it.. Is there any obvious reason why it isn't implemented?

  4. #4
    grgur's Avatar
    Join Date
    Aug 2007
    Location
    Split, Croatia
    Posts
    155
    Answers
    10
    Vote Rating
    24
    grgur has a spectacular aura about grgur has a spectacular aura about

      0  

    Default


    Ext.data.Store.prototype.filters (or store.filters in your instance) is an array of objects representing the applied filters. Try interrogating it and work from there
    Grgur Grisogono
    Ext JS in Action SE co-author
    Exercising awesomeness at Modus Create - Official Sencha Partner

    Get in touch for Sencha Touch Training
    @ggrgur

  5. #5
    Sencha User
    Join Date
    Jul 2012
    Posts
    5
    Vote Rating
    2
    rmaas is on a distinguished road

      1  

    Default


    Quote Originally Posted by grgur View Post
    is an array of objects
    Yeah but wouldn't it make sense to have a remove function? Seems a bit weird to remove everything and manually add the remaining objects..

    If you take a look at the store object as example:
    - store.remove() accepts either a model or an array of models..

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi