This is a migrated thread and some comments may be shown as answers.

Adding custom columns/properties, DateTime showing as undefined

3 Answers 51 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Aleksander
Top achievements
Rank 1
Aleksander asked on 19 Nov 2014, 02:43 PM
Hello,

I've tried to add some custom properties to the Gantt chart. But the added datetime columns just list undefined.
The properties are being sendt from the client as json and I've tried to hook up the custom properties in the aspx code as shown here.

See screenshots.

3 Answers, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 19 Nov 2014, 02:54 PM
Hi,

Could you try setting the ClientPropertyNames to lowercase, so that they are "actualStart" and "actualEnd"‚Äč?

Regards,
Bozhidar
Telerik
0
Aleksander
Top achievements
Rank 1
answered on 19 Nov 2014, 02:59 PM
Thank you, camel casing the properties worked ( I had tried all lowercase before and that did not work ).

How can you format the datetime fields (json is same for all fields) ?
0
Aleksander
Top achievements
Rank 1
answered on 19 Nov 2014, 03:06 PM
Sorry, I figured it out. 
Had to use the telerik:GanttDateColumn instead of the telerik:GanttBoundColumn in the aspx code. sorry.
Tags
Gantt
Asked by
Aleksander
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Aleksander
Top achievements
Rank 1
Share this question
or