Hi,
I am using Timeline Grouping in the scheduler. and I want to show the group without any item(user / or like ). I map ti data in the group but it automatically hides the group if it hasn't second-level data.
I map group data like this
const group = Response.data.data.map((x)=>({
text: x.location_job_role.name,
id: x.location_job_role.id,
color: '#00C49A',
isGroup: true,
}))
this.projectResourceDataSource = _.uniqBy(group,'id')
//
also, scheduler implements like this,
<e-resources>
<e-resource
:allow-multiple="allowMultiple"
:data-source="projectResourceDataSource"
:allowTextWrap='true'
color-field="color"
field="group_id"
id-field="id"
name="Projects"
text-field="text"
title="Choose Project"
id="res"
/>
<e-resource
:allow-multiple="allowMultiple"
:data-source="employeeDataSource"
color-field="color"
field="user_id"
group-i-d-field="groupId"
id-field="id"
image-field="image"
name="Employees"
text-field="text"
title="Employee"
/>
</e-resources>
</ejs-schedule>
</
Any ideas on what I am doing wrong?
Thanks