Apologies for the delay.
I've checked your code again and yes, it seems to be fine (it's adding the correct values to Resources collection).
It's strange that it doesn't display the rows.
Can you please do the following:
1. Let me know how you call loadGanttChart() method (in Page_Load?)
2. Let me know what DayPilot version you are using
3. Check how the resources collection is serialized in the output HTML page. In the main Scheduler demo page (http://www.daypilot.org/demo/Scheduler/) it looks like this:
v.resources = [{"id":"GroupLocations","innerHTML":"Locations","areas":null,"name":"Locations","loaded":true,"expanded":true,"children":[{"id":"A","innerHTML":"Room 1","areas":null,"name":"Room 1","loaded":true,"contextMenu":"cmSpecial"},{"name":"Room 2","innerHTML":"Room 2","areas":null,"id":"B","loaded":true},{"name":"Room 3","innerHTML":"Room 3","areas":null,"id":"C","loaded":true},{"name":"Room 4","innerHTML":"Room 4","areas":null,"id":"D","loaded":true}]},{"id":"GroupPeople","innerHTML":"People","areas":null,"name":"People","loaded":true,"expanded":true,"children":[{"name":"Person 1","innerHTML":"Person 1","areas":null,"id":"E","loaded":true},{"id":"F","innerHTML":"Person 2","areas":null,"name":"Person 2","loaded":true,"toolTip":"Test"},{"id":"G","innerHTML":"Person 3","areas":null,"name":"Person 3","loaded":true,"toolTip":"Test"},{"id":"H","innerHTML":"Person 4","areas":null,"name":"Person 4","loaded":true,"toolTip":"Test"}]},{"id":"GroupTools","innerHTML":"Tools","areas":null,"name":"Tools","loaded":true,"expanded":true,"children":[{"name":"Tool 1","innerHTML":"Tool 1","areas":null,"id":"I","loaded":true},{"id":"J","innerHTML":"Tool 2","areas":null,"name":"Tool 2","loaded":true,"toolTip":"Test"},{"id":"K","innerHTML":"Tool 3","areas":null,"name":"Tool 3","loaded":true,"toolTip":"Test"},{"id":"L","innerHTML":"Tool 4","areas":null,"name":"Tool 4","loaded":true,"toolTip":"Test"}]}];
4. You can also try to force full update by using
DayPilotScheduler1.Update(CallBackUpdateType.Full);
in loadGanttChart() method.