I want to get the date range of a week from a client side RowHeaderClick event (so that I can send it in a web services call).
I can get the week number from the inner text of the dom element (see below).
I can see several ways to turn the week number into a date:
1. If I get the <td> cell that is the first "next sibling", is there a way to determine the date triplet (in which case I wouldn't even need the week number)?
2. Is there a way to get the first date triplet or the first week number being displayed in a multi-view calendar?
...
function OvernightCalendar_OnRowHeaderClick(calendarInstance, args)
{
// don't select, we're just using the click to style the week
args.set_cancel(true);
// Get the dom element
var e = args.get_domElement();
// The inner text holds the week number
var weekNumber = e.innerText;
Sys.Debug.trace('Week Number: ' + weekNumber);
// walk the td cells from the row, styling each cell
var e = e.nextSibling;
while (e != null) {
styleCell(e);
e = e.nextSibling;
}
}