ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: queensgambit9 on August 13, 2018, 05:54:12 pm
-
I have set
format: "yy-mm-dd"
in colmodel but when the request is done to DB, it is sent yy/dd/mm...how can I control the format in the request?
-
Presuming that your question is related to inline editing,
format is used to control display of data in grid, it's not send to db.
Grid receives raw data from db and sends raw data back to grid.
-
Sorry for being a bit unclear. Not related to inline editing.
dataModel is remote.
{ title: "Date", width: 50, dataIndx: "Date", dataType: "date", format: "yy-mm-dd", hidden: false, filter: { crules: [{condition: 'equal' }] } },
in DB data is stored as yy-mm-dd but when the filter request from grid is done its sent as "yy/dd/mm" so I get no matches when date is selected...
-
column.format is for display of data in grid, it doesn't affect format of data send during filtering.
During remote filtering, the dates are send in mm/dd/yy format.
A new property column.formatRaw has been added in v5.3.0 to affect the formatting of request dates send during remote filtering.
-
Ok, thanks.
Has this been changed from 5.1.0? It seemed to worked there...