DayPilot Forums

AJAX Calendar/Scheduling Controls
DayPilot » Forums » General » Scheduler Resource Name and ID

Scheduler Resource Name and ID

Hi,

I facing this problem as i want to get the resource name when createing a new event in javascript. currently

i only have this 3 property to access (start, end, column) which column return me the resource ID,

How can i get the resource name or innerHTML , been trying but cant find. Please help. Thanks

James - 12/17/2009 5:30:30 AM

The collection of resources is available as dps.resources (hierarchically) and as dps.rows (flat structure, in the order as displayed).

You can go through dps.rows array and check dps.rows[i].Value (which is the resource ID). The inner HTML is available as dps.rows[i].InnerHTML. But please remember that this is not documented and it might change in the future (although it's not likely).

Dan Letecky - 1/12/2010 4:10:42 PM
Post reply