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

Sort gantt chart by standard column

2 Answers 178 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Felix
Top achievements
Rank 1
Felix asked on 07 Aug 2015, 12:38 PM

Hello,

is it somehow possible to sort the tasks e.g. by start date. It seems that it's only possible to sort the tasks inside the gantt by custom columns when using a custom gantt provider. Sorting by a standard column like title or start date is ignored. Thanks.

Regards,
Felix

2 Answers, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 12 Aug 2015, 07:27 AM
Hello,

By default the gantt uses the OrderID field to sort the tasks, and for implementing the reorder functionality. If you are creating a custom provider, make sure you set the order ID to correspond to the order of the tasks you want to achieve. The indexes are zero based, and should be relative to the parent. For instance if you have two parent tasks, the children of the first one should have OrderID 0, 1 and 2, and the children of the second one - 0, 1 and 2 as well.

You can also click on the column headers to sort by a particular field. 

Regards,
Bozhidar
Telerik
0
Felix
Top achievements
Rank 1
answered on 12 Aug 2015, 09:32 AM

Hello Bozhidar,

thanks for you answer. Solved my problem.

Regards,
Felix

Tags
Gantt
Asked by
Felix
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Felix
Top achievements
Rank 1
Share this question
or