Hi,
How can i get the name of the resource for which the timeslot has been clicked in the OnClientAppointmentInserting event.
My code looks like this:
How can i get the name of the resource for which the timeslot has been clicked in the OnClientAppointmentInserting event.
My code looks like this:
function
OnClientAppointmentInserting(sender, eventArgs)
{
eventArgs.set_cancel(
true);
var x=eventArgs.get_resource(); // not working i need a suitable function here.
if(eventArgs.get_startTime().getHours() < 8)
{
alert(
"non-business hour");
}
else
{
window.location.href =
"NewBooking.aspx";
}
}
i want to store the id of the resource in x and send it through querystring.