How do I obtain a resource name from a given resource id in javascript?
For instance - I've rendered a scheduler in a view like so:
@Html.DayPilotScheduler(...)
{
...
TimeRangeSelectedJavaScript = "rangeSelected(start, end, resource)",
...
}
In my rangeSelected function I want to get the resource name from the resource(id) passed in as argument.
Is this possible, or do I have to manually retrieve the resource name via a custom ajax call etc?