Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    219
    Answers
    10
    Vote Rating
    5
    webfriend13 is on a distinguished road

      0  

    Default Answered: Store's filter method is not working as expected

    Answered: Store's filter method is not working as expected


    I have a store which is having a model. Model contains three fields ID, Name, age. This store is attached to a grid.
    This is how the data looks:

    delete.PNG


    I user filter function on the store to apply filter.
    So when i apply filter on Id 'Manu', i see two results in grid myStore.filter('ID', 'Manu'); //Works fine
    Problem myStore.filter('ID', 'Sales'); // retuns 4 results. It also includes result for ID 'Sales One' and 'Sales Two'
    What I Want: When I filter on 'Sales' ID, it should return only results for ID 'Sales'.

  2. HI Mixo,

    Thank you for quick reply. I will try the solution you gave but I tried this code and its working. I think your solution is same as below solution. +1 for that . Thank you

    Code:
    myStore.filter([    {filterFn: function(item) { return item.get('ID') == 'Sales'; }} ]);

  3. #2
    Sencha User mixo's Avatar
    Join Date
    Jul 2011
    Location
    Novosibirsk
    Posts
    43
    Answers
    4
    Vote Rating
    3
    mixo is on a distinguished road

      1  

    Default


    webfriend13 you can define filter function for filter with conditions which you like
    Code:
    store.filter([     {property: "email", value: /\.com$/},     {filterFn: function(item) { return item.get("age") > 10; }} ]);

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    219
    Answers
    10
    Vote Rating
    5
    webfriend13 is on a distinguished road

      0  

    Default


    HI Mixo,

    Thank you for quick reply. I will try the solution you gave but I tried this code and its working. I think your solution is same as below solution. +1 for that . Thank you

    Code:
    myStore.filter([    {filterFn: function(item) { return item.get('ID') == 'Sales'; }} ]);

Thread Participants: 1

Tags for this Thread