문제

I'm currently working with JQwidgets (jqxgrid) and I have a problem when I want to work with dates. The idea behind is to get a JSON object and from it it should create a table dynamically.

In my JSON object, the date is shown like this:

"customer_dateCreate":{"date":"2013-03-05 18:06:27","timezone_type":3,"timezone":"Europe\/Berlin"}

in my JQwidget script, I have the following format:

{name: "customer_dateCreate" type: "date"}

However, in mygrid the cell is rendered like: [object Object]

Any ideas? Thanks!

도움이 되었습니까?

해결책

The customer_dateCreate is actually an object. If you want to make it to point to the Date field, you should use that:

 {name: "customer_dateCreate", map: "customer_dateCreate>date", type: "date"}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top