Hi
I want to handle the client side events that fires when the date is changed on that date picker control of the radScheduler.
In the OnInit event of the page I hook up the event using
on my aspx page in the script i have the function
I want to handle the client side events that fires when the date is changed on that date picker control of the radScheduler.
In the OnInit event of the page I hook up the event using
RadDatePicker
dp = this.RadScheduler1.FindControl("SelectedDatePicker") as RadDatePicker;
dp.ClientEvents.OnDateSelected = "SchedulerSelectedDatePicker_OnDateSelected";
on my aspx page in the script i have the function
function SchedulerSelectedDatePicker_OnDateSelected(sender, eventArgs)
{
var date = eventArgs.get_renderDay().get_date();
int offset = date.getTimezoneOffset();
}
My first problem is that for some reason the event is not firing. What could be the problem here.
Once I have sorted that and got it firing I want to pass the value of offset that I calculate in the function back to the server with the partial postback. What's my best way of doing this? Stick the value in a hidden field or is there another way?
Cheers
Gary