1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    235
    Vote Rating
    0
    chandan.behura is on a distinguished road

      0  

    Default store filter

    Hi,
    how to filter a store for a combo.

  2. #2
    Sencha User Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Pennsylvania
    Posts
    582
    Vote Rating
    268
    Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of

      0  

    Default

    Well stores have a filter method on them
    http://docs.sencha.com/ext-js/4-1/#!...-method-filter

    But I am not sure if that is what you are looking for since you mentioned combo. Can you be more specific if that is not what you are wanting?

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    235
    Vote Rating
    0
    chandan.behura is on a distinguished road

      0  

    Default

    Quote Originally Posted by Tim Toady View Post
    Well stores have a filter method on them
    http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.Store-method-filter

    But I am not sure if that is what you are looking for since you mentioned combo. Can you be more specific if that is not what you are wanting?

    what i want is, i have 2 combo referring to one store which contains 4 values (day,week,month,period). but for first combo i want 'day' not to be displayed.
    1st combo-week,month,period
    2nd combo-day,week,month,period


    how i will do that.

  4. #4
    Sencha User Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Pennsylvania
    Posts
    582
    Vote Rating
    268
    Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of

      0  

    Default

    I would just use two different stores. It is a fairly simple dataset and filtering a store shared by both would affect both combos.

Thread Participants: 1

Tags for this Thread