parentIdMapping and idMapping. But that only takes two fields. We want use something similar but for flat data array. Is it possible or do we need to structure our data with subtaks and taskname?.
How do you make the picture below from a flat array using "Self-Referential Data binding"? can you send me a data sample if possible.
|
<ejs-treegrid :dataSource="data" :treeColumnIndex="1"
idMapping="taskID" parentIdMapping="parentID"
ref="treegrid">
<e-columns>
<e-column field="taskID" headerText="Task ID"
width="70"isPrimaryKey="true">
</e-column>
<e-column field="taskName" headerText="Task Name"
width="180">
</e-column>
<e-columnfield="duration" headerText="Duration"
width="80">
</e-column>
</e-columns>
</ejs-treegrid> |