I want my unplanned grid to have a tree option.
Using the provided example: /examples/drag-unplanned-tasks/app.module.js
In app.module.js I changed unplanned columns type from 'template' to 'tree'.
for the new UnplannedGrid I added the
features : {
tree : true
},
I am attaching my modified data file so that you can see where I added to the existing data a parent child data releationship.
Here is the data event tree added
{
"id" : 100,
"name" : "Doctor Tree",
"manuallyScheduled" : false,
"children" : [
{
"id" : 101,
"name" : "Metallic compounds",
"iconCls" : "b-fa b-fa-stethoscope",
"duration" : 1,
"requiredRole" : "Doctor"
},
{
"id" : 102,
"name" : "OEM batch",
"iconCls" : "b-fa b-fa-stethoscope",
"duration" : 1,
"requiredRole" : "Doctor"
},
{
"id" : 103,
"name" : "Prototype kit",
"iconCls" : "b-fa b-fa-stethoscope",
"duration" : 1,
"requiredRole" : "Doctor"
}
]
},
When I drag non tree item, no issues.
When I drag a child from the tree, and the onDrop calls await scheuld.scheduleEvent, within the schedulerpro.module.js function getInstances(dir, count, startDate, endDate, isRange) throws the error:
"Invalid start date." Even though the event record passed in does have a valid startDate.
This error prevents the event from being scheduled correctly.
Perhaps I have not set something up correctly in my data or in the app.module.js.