[GridPanel] Filter error when date is null

  1. #1

    [GridPanel] Filter error when date is null

    Hello,

    I created dynamically my gridpanel and store.

    My data contains date field : this value is not obligatory and sometimes, this field could be null value.

    and that is the problem : when this field is null, i can't filter the date column, because i've got javascript error.


    do you have any solution ?

    Thanks,

    Knoll
  2. #2

    RE: [GridPanel] Filter error when date is null

    Hi,

    How are you filter the date column? Do you use GridFilters?


  3. #3

    RE: [GridPanel] Filter error when date is null

    Yes, Into the code behind, i generate it.

    I'm looking the meta data from the database, and i generate the GridFilters dynamically:

    
                DateFilter StrFilter = new DateFilter();
                StrFilter.DataIndex = strDataIndex;
                GridFilters1.Filters.Add(StrFilter);
    strDataIndex = column Name.

    Date filter of my gridpanel works when the date is not null.

  4. #4

    RE: [GridPanel] Filter error when date is null

    Hi,

    We have fixed it. The cahnges have been committed to the SVN and will be publicly available with the v0.8 release.


Similar Threads

  1. Gridpanel multiheader From To date filter
    By nomz in forum 2.x Help
    Replies: 4
    Last Post: Oct 26, 2012, 10:39 AM
  2. Replies: 4
    Last Post: Aug 17, 2011, 2:38 PM
  3. Replies: 1
    Last Post: Aug 17, 2011, 1:35 PM
  4. Replies: 7
    Last Post: Dec 20, 2010, 1:24 PM
  5. [CLOSED] Date Filter in GridPanel
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 27, 2009, 10:27 AM

Posting Permissions