Solved - Displaying only the name of "project" types in grid column

Hi there,

I am working on the pro version of your product and I want to create a column on the grid that will display only the names for “project” types.

I currently display them along with tasks, but I want to provide more filtering options.

Is there a built in way for that?

Extra information for when column is visible:

  • I need the column to be static and not get affected by other sorting options(eg. alphabetical, or by start_date), meaning: sort only the tasks and not the projects.

if there is no way to achieve this by using “project” types, is there any way of creating a custom object that would have this behavior?

Thanks in advance!

Screen shot from my current grid

Hello Stratos,

I am working on the pro version of your product and I want to create a column on the grid that will display only the names for “project” types.

You need to use the templates in the column configuration and return nothing when the task type is project. When the type is task, you return the value.
Here is an example of how it works:
http://snippet.dhtmlx.com/30bea40e6
You can read more about templates in the following article:
https://docs.dhtmlx.com/gantt/desktop__specifying_columns.html#datamappingandtemplates


I need the column to be static and not get affected by other sorting options(eg. alphabetical, or by start_date), meaning: sort only the tasks and not the projects.

The default sorting function works when you click on the column header. There is no way to change how it works. You need to use a custom sorting function:
https://docs.dhtmlx.com/gantt/desktop__sorting.html#customsortingfunctions

Here is an example of how it might be implemented:
http://snippet.dhtmlx.com/43b68e12b

Hi ramil!

Sorry for taking this long to answer but i had to rotate my tasks back to Gantt Charts.

Thanks a lot for your response, it was really helpful and on point.

Sincerely SChatz