Our blazing fast Grid component built with pure JavaScript


Post by markusmo »

Hi
I have been searching for an example to implement sorting in a grid.
My data has four attributes, dates to be precise, which I need to sort accordingly. Is it possible to define a ranking, such as:
  • attr1 is not null, display on top
  • attr2 is not null, display after all attr1 objects
  • attr3 is not null, display after all attr2 objects
  • attr4 is not null, display after all attr3 objects
  • all other objects with all four attributes null

Post by mats »

This is possible, and a custom sorter is demonstrated in the ”sorting” demo. Did you try it?

Post by markusmo »

Oh... I am am working with the Scheduler ... I did not think of looking into the Grid-Demos ... Thanks for the hint. I will look into that :-)

Edit:
How do null-values influence sorting?

Post by markusmo »

I got it working:
Null-Values where weighed less than the date, so they always where in the beginning.
Instead I filled them with dummy-values and now it is working.

Post Reply