I'm using this tutorial as a starting point https://code.daypilot.org/97780/php-annual-leave-scheduling-javascript-html5-frontend-mysql
I've added resource groups, and my JSON for dp.rows.load is:
[{"id":"group_1","name":"Resource 1","expanded":true,"children":[{"id":"1","name":"Adam Emerson"},{"id":"2","name":"Cheryl Irwin"}]},{"id":"group_2","name":"Resource 2","expanded":true,"children":[{"id":"3","name":"Emily Jameson"},{"id":"4","name":"Eva Rodriguez"}]},{"id":"group_3","name":"Resource 3","expanded":true,"children":[{"id":"5","name":"Eliah Kingston"}]},{"id":"group_4","name":"Resource 4","expanded":true,"children":[{"id":"6","name":"Taylor Niles"}]},{"id":"group_5","name":"Resource 5","expanded":true,"children":[{"id":"7","name":"Jo Thomas"}]}]
This displays as I would expect.
The problem is that when using the onTimeRangeSelected event as it is in the tutorial, the "Employee" drop down selectable is showing only the parent groups (which shouldn't be selectable). If I choose them the ID used for saving the event is the group (parent) ID, not the employee (child) ID.
How do I only show the children in a modal dropdown list?