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
    Oct 2011
    Posts
    20
    Vote Rating
    0
    nstokoe is on a distinguished road

      0  

    Default Unanswered: Alternative to filters' setValue() method in Beta 4

    Unanswered: Alternative to filters' setValue() method in Beta 4


    I see that in Ext Gwt 2.2.5 the grild filters interface contained a setValue method. That method is no longer available in the Ext Gwt 3 beta 4. I was wondering how we are now supposed to programmatically set the value of a grid filter. With the click of a button I want to be able to trigger predetermined filtering 'macros' on a near by grid and have those macro filtering values show up in each column's filter menu and have the toolbar/paging to update accordingly as well.

    Any help on how to do this would be appreciated.

    http://dev.sencha.com/deploy/gxtdocs...ingFilter.html

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Posts
    20
    Vote Rating
    0
    nstokoe is on a distinguished road

      0  

    Default


    I've tried to implement the above functionality with a StoreFilter, which seems to work as far as the grid contents filter goes, but the problem is that it still displays the unfiltered total and unfiltered number of pages in the paging toolbar. Is there anyway to update the paging toolbar to reflect how the StoreFilter has reduced the returned number of rows?

    Code:
    StoreFilter<StatusSummary> rulenameStoreFilter = new StoreFilter<StatusSummary>() {
                    @Override
                    public boolean select(Store<StatusSummary> store,
                            StatusSummary parent, StatusSummary item) {
                        return item.getRulename().equals(filterRulename);
                    }
                };
                store.addFilter(rulenameStoreFilter);

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    20
    Vote Rating
    0
    nstokoe is on a distinguished road

      0  

    Default


    Another problem with the above approach is that is only checks against the current page's worth of data. I need a way to send the filtering information to the service.

  4. #4
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    411
    Answers
    20
    Vote Rating
    21
    icfantv will become famous soon enough icfantv will become famous soon enough

      0  

    Default


    So, we wound up writing our own extensions to the filters we needed that had this functionality because while we are using filters, but they are located in separate toolbar from the grid and we didn't like the grid header menu functionality for filter interaction. We essentially added setValue() methods to do this.

    That said, every filter has a getValueProvider() method which returns a ValueProvider instance for that filter. The ValueProvider has a setValue(...) method which, in theory, should allow you to set the value. However, I have not actually tested whether or not this works and if so does so consistently. I've found that certain FilterConfig fields can be overwritten between your filter's getFilterConfig() method and the call to the server (e.g., setField(...) values are are overridden later).

    If you do go this route, please let me know. Thanks.

Thread Participants: 1

Tags for this Thread