Home Unanswered Active Tags New Question

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

Asked by James 2 years ago.
Replies

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).

Comment posted by Dan Letecky 2 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java