[{"TaskID":"6223462473398594","TaskName":"Start ECC and BW after Maintenance","StartDate":"2021-04-27 01:18:17","Duration":10},{"TaskID":"6223465848629159","TaskName":"Start","StartDate":"2021-04-27 01:18:17","Duration":10,"parentID":"6223462473398594"},{"TaskID":"6223466504900046","TaskName":"Start ECC","StartDate":"2021-04-27 01:18:17","Duration":10,"parentID":"6223462473398594","Predecessor":"6223465848629159"},{"TaskID":"6223467997600720","TaskName":"Check ECC SAP Process","StartDate":"2021-04-27 01:18:17","Duration":10,"parentID":"6223462473398594","Predecessor":"6223466504900046"},{"TaskID":"6223468325195833","TaskName":"Complete SAP Startup","StartDate":"2021-04-27 01:18:17","Duration":10,"parentID":"6223462473398594","Predecessor":"6223467997600720"}]But no data displayed in the gantt chart and no errors in the console...
2. It is unclear what date/time format is supported for parsing the remote data and if this is configurable/customizable
Help appreciated, thx David
|
S.No |
Query |
Syncfusion Comments |
|
1 |
Documentation doesn't clearly state in what format the data needs to be returned |
We are sorry for the inconvenience caused. We will include about WebApiAdaptor in our documentation and it will get refreshed in live as soon as possible. Now, for your convenient we have prepared a sample and you can get it from below link.
We need to return JSON object with properties Items and Count as shown in below documentation.
|
|
2 |
It is unclear what date/time format is supported for parsing the remote data and if this is configurable/customizable
|
Do you mean, changing the date format in Grid cells and in tooltip. If yes, by using the dateFormat property, we can specify different date formats.
Also please refer the below document link also.
|
Thx Pooja, this is helpful, the 2) question was about how to tell DataManager which Date/Time format to use to parse the data sent by the server - StartDate/EndDate (assuming adaptor = WebApiAdaptor or UrlAdaptor) I think this is what preventing the entries being parsed successfully (would be nice to get error messages at least)
Thx, David
{"Items":[{"TaskID":"6223462473398594","TaskName":"Start ECC and BW after Maintenance","StartDate":"2021-04-28T16:58:20.704","Duration":10},{"TaskID":"6223465848629159","TaskName":"Start","StartDate":"2021-04-28T16:58:20.704","Duration":10,"ParentId":"6223462473398594"},{"TaskID":"6223466504900046","TaskName":"Start ECC","StartDate":"2021-04-28T16:58:20.704","Duration":10,"ParentId":"6223462473398594","Predecessor":"6223465848629159"},{"TaskID":"6223467997600720","TaskName":"Check ECC SAP Process","StartDate":"2021-04-28T16:58:20.704","Duration":10,"ParentId":"6223462473398594","Predecessor":"6223466504900046"},{"TaskID":"6223468325195833","TaskName":"Complete SAP Startup","StartDate":"2021-04-28T16:58:20.704","Duration":10,"ParentId":"6223462473398594","Predecessor":"6223467997600720"}],"Count":5}
I got the same setup working with Dhtmlx Gantt Control in 1/2 hour - although I like Syncfusion UI better this is proving a frustrating experience so far
|
taskFields: {
id: 'TaskID',
name: 'TaskName',
startDate: 'StartDate',
duration: 'Duration',
parentID: 'ParentId',
dependency: 'Predecessor'
} |
|
new GanttDataSource(){
TaskID = 6223465848629159,
TaskName = "Identify Site location",
StartDate = "2019-03-29T16:58:20.704",
Duration = "2",
ParentId = 6223462473398594
} |
|
public class GanttDataSource
{
public long TaskID { get; set; }
public string TaskName { get; set; }
public string StartDate { get; set; }
public string Duration { get; set; }
public string Predecessor { get; set; }
public long ParentId { get; set; }
} |