Our blazing fast Grid component built with pure JavaScript


Post by notepads »

This is the thing I have tried to make the date default filter bar working. Every string column works perfectly but when it comes to this date filter, it is giving correct value such as 02/09/2020'. I tried to convert to new Date and used DateHelper to make the format right but it didn't help. Then when I just press enter in the filter bar with the filter keyword of02/09/2020`, then it works. How can I make the date default filter work?

let grid = new Grid({
  features : {
    filterBar : {
     filter: { property : 'date', 
    value :bryntum.scheduler.DateHelper.format(new Date(`${new Date(value)}`), 'MM/DD/YYYY') } }
  }
});
let grid = new Grid({
  features : {
    filterBar : {
     filter: { property : 'date',
      value : new Date( value)
  }
});

https://bryntum.com/docs/grid/#Grid/feature/FilterBar


Post by saki »

We have a demo that shows how to filter with date: https://bryntum.com/examples/grid/filterbar/, have you seen it? Or you want a different behavior?


Post by notepads »

saki wrote: Wed Sep 09, 2020 2:38 pm

We have a demo that shows how to filter with date: https://bryntum.com/examples/grid/filterbar/, have you seen it? Or you want a different behavior?

Thank you for answering but my problem is that I first define what sort i need to do by specifically 'date format'. It does not filter when i first see the screen. Let's say I want to see the data with name filter, then I set the filter bar with keyword. Other than dateformat, everything is sorted well, but when i first put the date filterbar and set keyword, it's not doing anything.


Post by alex.l »

Hi notepads,

Thanks for the report, I was able to reproduce this problem, this is a bug and here is a ticket: https://github.com/bryntum/support/issues/1500

All best,
Alex

All the best,
Alex


Post Reply