You should fill the Resources collection manually:
protected void Page_Load(object sender, EventArgs e)
{
// I assume that resources are loaded in dtResources DataTable
foreach (DataRow dr in dtResources.Rows) {
DayPilotScheduler1.Resources.Add(new Resource(dr["name"], dr["id"]);
}
}
The Resources collection is stored in the ViewState so it's possible to place this init code inside if (!IsPostBack) block. However, the ViewState for DayPilotScheduler is usually very large - I recommend turning it off and placing the initialization code outside of if (!IsPostBack).