Hi Team,
I have a requirement where I need to make few selected resources as collapsible. These resources will/might have multiple jobs in hand at the same time. And in the collapsible view I would ideally want to show how many jobs are assigned to the resource in the particular time slot. I could not find this is documentation. I could find this example https://www.bryntum.com/examples/scheduler/resource-collapsing/
but there are 2 problems, 1 it doesn't make a particular resource collapsible instead make all of them collapsible. 2 it does not show number of jobs assigned in a particular time frame instead shows how all jobs assigned side by side.
Is there any solution to this? Any help is greatly appreciated?
Here you can see that not all the resources are collapsible. Only few of them are (based on certain property). Also you can see where arrow is pointing towards, there number of events are listed in the collapsed view (because that resource will be handling 2 jobs at the same time. In expanded view the information of the jobs(appointments in this case) will be shown.
Also I do not want all the resource to be collapsible but only few resources based on a certain property of the resource
For this you probably have to create your own column type and add a checking into renderer and onCellClick method. Check the source code of ResourceCollapseColumn.js, it's pretty easy to implement.
I am not able to reproduce that in code pen. can this be because of version difference ? I am using 3.1.5. and not able to see the option to update version in code pen.
and to add my own column type ? do you have any example to follow along ?
Hi Alex, It worked after upgrading, thanks.
One more doubt, is there any way that I can leverage "resourceCollapse" type in the new column type, if yes, can you please provide any example for that. If no, is there any way that rows can be programmatically collapsed/expanded?