Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Sep 2008
    Posts
    12
    Vote Rating
    0
    thughes is on a distinguished road

      0  

    Default [FNR] NumericFilter is broken when using remote filtering

    [FNR] NumericFilter is broken when using remote filtering


    I have been looking at the following 2 grid examples in the GWT 2.2.1 Explorer.

    http://www.sencha.com/examples/explorer.html#filtergrid

    http://www.sencha.com/examples/explo...motefiltergrid

    In the filter example, the numeric filter on the "Last" column works correctly. However, in the remote filter it does not. If you try a filter of "= 123.43" on both grids, in the filter example it correctly filters the grid to show just one row for "Apple Inc.", which is the only stock with this value. However in the remote filter grid, it shows all rows EXCEPT for the "Apple Inc." row, i.e. it does the exact opposite of what you would expect.

    Also, when you try less than (<) filters or greater than (>) filters, these work correctly on the filter example, but work as <= or >= in the remote filter examples. If you try a filter of > 123.43, in the filter example it correctly shows just one row for "Google Inc." which has a value of 512.6, but in the remote filter it show this row as well as the "Apple Inc." row.

  2. #2
    Ext User
    Join Date
    Sep 2008
    Posts
    12
    Vote Rating
    0
    thughes is on a distinguished road

      0  

    Default


    It looks like the problem is in the validateModel() method in the NumericFilter class, see below. I think the operators should be == for 'rangemenu.eq', < for 'rangemenu.lt', and > for 'rangemenu.gt', however this method is using !=, <=, and >=. Can someone please confirm that this is the source of the error? I tried to override the NumericFilter class with one of my own to override this method, but am unable to do so as the fields have either private or package access only. Can anyone help with this please?

    Code:
      @Override
      public boolean validateModel(ModelData model) {
        Number val = getModelValue(model);
        if (rangeMenu.eq != null && rangeMenu.eq.getValue() != null) {
          if (val == null || rangeMenu.eq.getValue().doubleValue() != val.doubleValue()) {
            return false;
          }
        }
    
        if (rangeMenu.lt != null && rangeMenu.lt.getValue() != null) {
          if (val == null || rangeMenu.lt.getValue().doubleValue() <= val.doubleValue()) {
            return false;
          }
        }
    
        if (rangeMenu.gt != null && rangeMenu.gt.getValue() != null) {
          if (val == null || rangeMenu.gt.getValue().doubleValue() >= val.doubleValue()) {
            return false;
          }
        }
        return true;
      }

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    For now you will need to overload the hole class. I will reply here once it is fixed in SVN

  4. #4
    Ext User
    Join Date
    Sep 2008
    Posts
    12
    Vote Rating
    0
    thughes is on a distinguished road

      0  

    Default


    OK, thanks for your reply. I Look forward to the fix!

  5. #5
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN as of revision 2435

Similar Threads

  1. Replies: 0
    Last Post: 20 Dec 2010, 12:29 AM
  2. problem in remote filtering
    By shivane in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 7 Dec 2010, 11:24 PM
  3. Remote Filtering and Paging
    By rooivalk in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 8 Oct 2010, 9:51 PM
  4. Remote Filtering for Grids
    By stan229 in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 9 Jul 2009, 10:07 AM
  5. Remote Filtering on table
    By drenda81 in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 11 Jul 2008, 11:48 AM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar