Results 1 to 1 of 1

Thread: Ext.grid.filters.filter.Date: serializer does not work

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Isnogud
    Guest

    Default Ext.grid.filters.filter.Date: serializer does not work

    Toolkit: Classic
    Version: 6.5.2.463

    Fiddle: https://fiddle.sencha.com/#view/editor&fiddle/28h6

    Reproduce: click on the DATE-header and select any date to filter.

    Expected behaviour: The serializer function is executed.
    Actual behaviour: The serializer function is NOT executed.

    Workaround: Create an override for Ext.grid.filters.filter.Date
    Code:
    Ext.define('Date', {
      override : 'Ext.grid.filters.filter.Date',
    
    
      getSerializer : function () {
        return this.serializer.bind(this);
      },
    
    
      serializer : function (filter) {
        let value = filter.value;
        if (value) {
          filter.value = Ext.Date.format(value, this.getDateFormat());
        }
        // ...
        // your serialization-code here..
        // ...
      }
    });

    Greetings,

    Isnogud
    Last edited by Isnogud; 18 Oct 2017 at 12:30 AM. Reason: fixed workaround

Similar Threads

  1. Replies: 2
    Last Post: 13 Mar 2017, 6:07 PM
  2. store in Ext.grid.filters.filter.List not work
    By lbottoni in forum Ext 5: Q&A
    Replies: 2
    Last Post: 8 Mar 2017, 1:36 AM
  3. Replies: 5
    Last Post: 6 Jan 2016, 11:11 AM
  4. Grid filters example fails when date filter is set
    By ssamayoa in forum Ext: Discussion
    Replies: 2
    Last Post: 12 Sep 2011, 1:24 PM

Tags for this Thread

Posting Permissions

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