but i dont wont the data in the gantt and the data in the “resource” view will be related
this is what i want to achieve https://docs.dhtmlx.com/gantt/desktop__resource_management.html
but in this case the tasks are connected to that data i want to use different data for that view
Hello Amit,
You can customize the views in the gantt.config.layout
object:
https://docs.dhtmlx.com/gantt/api__gantt_layout_config.html
If you want to add different columns, you need to specify them in the config
variable:
https://docs.dhtmlx.com/gantt/desktop__layout_config.html#configsandtemplatesofviews
Here is the snippet with the resource view only:
http://snippet.dhtmlx.com/5/ed51c9fc0
And here is another snippet where you can specify the views and build a new layout:
https://snippet.dhtmlx.com/5/79f79c05b
Hi Ramil, i want that the data in the custom resource will show only in the resource and will connect to gantt only from view prospective
Hello Amit,
Probably, you will need to implement some custom solution.
However, you can send me a picture to show how you imagine it should work, and I will tell you if there is an easy way to implement it with Gantt API.
Hi Ramil, Thank you for replay the message!
This part in the image contain the critical path monthly status, i created it with react but i like to to create this with your library,
What is the problem i have?!
a. i want to display that data from other data source then the chart data source.
b. i want this section data will show only in that section (in the example you provided for the resources grid the data is the same data as the gantt data, this approach is not good for me )
for now this is my model for that section [{year:‘2017’ months:[
monthNumber:1,
monthValue:-2,
Color:red,
]}]
i need to show it only in the resources section this data is independent
Thank you for all the help Ramil.
Hello Amit,
You need to use a different data store and apply custom code to load the data. We have an example with the custom grid and timeline, and the data in the timeline is displayed by using the layers function:
https://docs.dhtmlx.com/gantt/samples/10_layout/02_resource_panel.html
Using it as an example, I made a different example where the values are not connected to the task data. I put random values, but you need to obtain them from a function. Here is the snippet:
http://snippet.dhtmlx.com/5/547b478db