> DataValueField= key appointment
> DataTextField=text appointment
> DataEndField=date/time end appointment
> DataTagFields=tipology appointment
> DataStartField=date/time start appointment
> DataSource=getData (DataTable)
> DataResourceField=id resources
Yes, this is correct.
And when you are adding the resources, you use:
DayPilotScheduler1.Resources.Add(new Resource(resourceName, resourceId));
Where:
- resourceName is what will be visible in the header on the left side
- resourceId is what will be used to find the appropriate events
E.g.
1. Add a resource:
DayPilotScheduler1.Resources.Add(new Resource("First resource", "123"));
2. When having the following table:
nameidstartendresourceEvent 112007-01-01 08:002007-01-01 09:00123Event 222007-01-01 09:002007-01-01 10:00123
Use the following mapping:
DataValueField="id"
DataTextField="name"
DataEndField="end"
DataStartField="start"
DataResourceField="resource"
3. Using rendering, the value of "resource" column is compared with the resource id from the Resources collection (here "123"). If these values match, the event is rendered in that row.