5 Answers, 1 is accepted
0
Hi Madhan,
Hope this will be helpful.
Regards,
Plamen Zdravkov
the Telerik team
You can handle the onClientTimeSlotContextMenu event of RadScheduler as in the javascript code bellow:
function
OnClientTimeSlotContextMenu(sender, args) {
var
newAppItem = sender.get_timeSlotContextMenus()[0].get_items().getItem(0);
var
currentTime =
new
Date()
if
(args.get_time() < currentTime) {
$telerik.$(newAppItem.get_element()).hide();
}
else
{
$telerik.$(newAppItem.get_element()).show();
}
}
Hope this will be helpful.
Regards,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Madhan
Top achievements
Rank 1
answered on 22 Mar 2012, 08:24 AM
Hi Plamen Zdravkov,
Thanks for your reply, its helps me lot... :)
Thanks,
Madhan
0
Madhan
Top achievements
Rank 1
answered on 22 Mar 2012, 08:52 AM
Hi Plamen Zdravkov,
I am facing one more issue related this, also i don't want to show my "Add Appointment" popup template when i double click on past datetime. How can i hide my "Add Appointment" popup window if i double click on past date.
Thanks,
Madhan
I am facing one more issue related this, also i don't want to show my "Add Appointment" popup template when i double click on past datetime. How can i hide my "Add Appointment" popup window if i double click on past date.
Thanks,
Madhan
0
Hi Madhan,
Plamen Zdravkov
the Telerik team
You can check the time in the onClientAppointmentInserting event as in the code:
function
OnClientAppointmentInserting(sender, args) {
var
currentTime =
new
Date()
if
(args.get_startTime() < currentTime) {
args.set_cancel(
true
);
}
}
Hope this will help.
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Madhan
Top achievements
Rank 1
answered on 23 Mar 2012, 01:26 PM
Hi Plamen Zdravkov,
Thanks a lot, its working perfectly ....:)
Thanks,
Madhan
Thanks a lot, its working perfectly ....:)
Thanks,
Madhan