Our state of the art Gantt chart


Post by sachidanand »

Hello team,

I am using "loadInlineData()" method to load the data in gantt . Before loading the data I want to include 'collapseIconCls' property to the 'name' column config.

Do we have any such event listener in gantt which can be used for this purpose ?


Post by mats »

Sure, just set the 'iconCls' in your data:

 {
        "id"       : 1,
        "name"     : "Chicago O'Hare",
        "iconCls"  : "b-fa b-fa-plane",
        "expanded" : true,
        "children" : [
            {
                "id"       : 2,
                "name"     : "Terminal 1",
                "iconCls"  : "b-fa b-fa-building",
                "expanded" : true,
                "children" : [

Demonstrated here: https://www.bryntum.com/examples/grid/tree/

Docs here: https://bryntum.com/docs/grid/api/Grid/data/GridRowModel#field-iconCls


Post Reply