Hi guys,
I have the following grid showing events only in the future:
var source =
{
datatype: "json",
datafields: [ ...
{name: 'start', type: 'date', format: "yyyy-MM-dd HH:mm"},
{name: 'end', type: 'date', format: "yyyy-MM-dd HH:mm"},
...
],
...
};
After that, a beforeLoadComplete function filters all entries in the past, displaying only future events.
My grid:
$("#jqxgrid").jqxGrid(
{
....
source: dataAdapter,
columns: [
...
{text: 'Von', dataField: 'start', width: 190, cellsformat: 'dddd.MM -- HH:mm', cellsalign: 'center'},
{text: 'Bis', dataField: 'end', width: 190, cellsformat: 'dd.MM -- HH:mm', cellsalign: 'center'},
This gives me something like this:
Von: | Bis :
Thursday.05 — 18:00 | 29.05 — 20:00
The question: Is it possible to display “TODAY — 18:00” instead of “Thursday.05 — 18:00″?
Best,
Andy