Skip to content
This repository has been archived by the owner on Apr 2, 2019. It is now read-only.

Uncaught TypeError: Object 1365465600000 has no method 'trim' #122

Closed
martinlie opened this issue Apr 10, 2013 · 6 comments
Closed

Uncaught TypeError: Object 1365465600000 has no method 'trim' #122

martinlie opened this issue Apr 10, 2013 · 6 comments

Comments

@martinlie
Copy link

The following fails in latest version when dealing with Date objects in the model (line 279):

...
_convert: function (data, validate) {
data = data.trim();
...

Do the grid handle Javascript Date object, or only ISO strings?

@wyuenho
Copy link
Contributor

wyuenho commented Apr 10, 2013

The default datetime formatter only accepts ISO-8601 strings. PR welcome if you want the formatter to accept date objects as well. It should be quite easy.

@martinlie
Copy link
Author

Ok, thanks.

@martinlie
Copy link
Author

So, I managed to write a Cell class and Formatter class doing what I want. I'll see if I can share it somehow.

@wd40dw
Copy link

wd40dw commented Apr 25, 2013

Hi martinlie did you get this to work for displaying dates?

See my question: #141

@martinlie
Copy link
Author

Hello, see my answer with details on your topic.

Short reply: I did!

Martin Lie

2013/4/25 Nedved85 [email protected]

Hi martinlie did you get this to work for displaying dates?

See my question: #141 #141


Reply to this email directly or view it on GitHubhttps://github.com//issues/122#issuecomment-17031744
.

@wd40dw
Copy link

wd40dw commented Apr 26, 2013

Thanks for you help - iv been unsuccessful to solve this exact problem so far, Cheers for the help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants