Author Topic: column > dataType  (Read 4735 times)

nklapper

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 17
    • View Profile
column > dataType
« on: May 24, 2016, 10:37:57 pm »
What are all the options for column > dataType  ?

I could not find a list in the API documentation.

Is datetime supported?  If not, what is the best workaround?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: column > dataType
« Reply #1 on: May 25, 2016, 05:01:19 pm »
All possible value of datatypes are mentioned in the API: http://paramquery.com/pro/api#option-column-dataType

string, stringi, integer, float and date

Both date and datetime fields are supported, they have common dataType = 'date'

Since pqGrid depends upon jQueryUI for date formatting, time formatting is not supported.

For time formatting, you could do it yourself or include some other library.

---Edit--

The bool dataType was missing from the doc. It's been updated.
« Last Edit: May 26, 2016, 06:55:58 pm by paramquery »