Add new resource feature

hello, I’m using v7.1.11 enterprise, I wonder if it is possible to put an add button on top of the resource grid in order to add a new resource?

Hello Ayman,
Yes, it is possible to do that.
The resource grid uses the same configuration as the Gantt Grid. So, you can return the button in the label parameter:
columns Gantt Docs(string

Then you can use the addItem method from the resource datastore object:,addItem,-(item%2C%20index)%3A%20number

Here is an example:

Gantt doesn’t have a built-in editing form for adding resources. You will need to implement a custom solution for that by using the Gantt API and Javascript.

You can check the following demo where you can add, modify and delete resources including the resource assignments:'04_customization/23_integration_with_suite.html'&filter='suite'

1 Like

thanks ramil,
Do I need to purchase a Gantt suit in addition to the current Gantt enterprise license? In order to use dhx.Window?

Hello Ayman,
The solution in the snippet uses DHTMLX Suite. So, if you want to use the same code in your project, you need to purchase DHTMLX Suite (and not only for the Window component, but for others as well). Otherwise, it just won’t work.

But you can also check the Gantt API code that is used in the snippet and try creating your solution with other 3rd-party libraries and even pure HTML and Javascript code.