Results 1 to 3 of 3

Thread: Determining if it After, Before or On date in DateFilter?

  1. #1

    Default Determining if it After, Before or On date in DateFilter?

    Hi,
    I am trying to use DateFilter in my Json based application. Here is what I am trying to do to retrieve After, Before and On date from the DateFilter. I can get the date value but unable to determine if it is After, Before and On date. I have tried using getField() in FilterConfig, but it returns "undefined". I am not sure what I am doing wrong. I am running this is the loader's BeforeLoad event.

    Code:
                                if(((DateFilter)f).getValue()!=null){
      
                                     List<FilterConfig> filterConfig = (List<FilterConfig>)((DateFilter)f).getSerialArgs();
    
                                     for(FilterConfig cg : filterConfig){
                                         MessageBox.alert("filter config: Field "+cg.getField()+" value "+cg.getValue().toString(), null, null);
                                         
                                     }
                              }

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    I can get the date value but unable to determine if it is After, Before and On date.
    Code:
    filterConfig.getComparison()
    should give you that information.

  3. #3

    Default

    Quote Originally Posted by sven View Post
    Code:
    filterConfig.getComparison()
    should give you that information.
    Thanks sven. I noticed that the documentation under http://www.sencha.com/gxtdocs/ did not have GridFilters. I wasn't sure if I could not find it or if this is being deprecated for some other filters.

    Thanks again,

Similar Threads

  1. Replies: 1
    Last Post: 19 Oct 2010, 12:44 PM
  2. Default criteria for Ext.ux.grid.filter.DateFilter
    By spcjak7221 in forum Ext 3.x: User Extensions and Plugins
    Replies: 2
    Last Post: 19 Oct 2010, 11:55 AM
  3. Determining row height
    By afarqu in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 2 Apr 2010, 6:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •