I'm currently trying to get the RadAjaxLoadingPanel to show up when the OnClientTimeSlotClick event is fired. Currently the LoadingPanel shows up when insert, update and delete events are fired. But anytime I call a javascript function it doesn't show up. Since OnClientTimeSlotClick is a client side event related to the scheduler shouldn't the loading ClientEvents OnRequestStart execute?
Is there any way for me to get the Loading Panel to show when the OnClientTimeSlotClick is executed from the Scheduler?
function RequestStart(sender, eventArgs)
{
currentLoadingPanel = $find(
"<%=this.RadAjaxLoadingPanel1.ClientID%>");
currentUpdatedControl =
"<%=this.RadScheduler1.ClientID%>";
//show the loading panel over the updated control
currentLoadingPanel.show(currentUpdatedControl);
}
function ResponseEnd(sender, eventArgs)
{
//hide the loading panel and clean up the global variables
if (currentLoadingPanel != null)
currentLoadingPanel.hide(currentUpdatedControl);
currentUpdatedControl =
null;
currentLoadingPanel =
null;
}
function OnClientTimeSlotClick(sender, eventArgs)
{
var eventTimeSlotClicked = eventArgs.get_time();
var hdnCalendarStartDate = document.getElementById("<%=this.hdnCalendarStartDate.ClientID%>");
hdnCalendarStartDate.value = eventTimeSlotClicked;
__doPostBack(
"<%=this.hdnCalendarStartDate.ClientID%>", eventTimeSlotClicked);
}
On the ASP Page I have
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadScheduler1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
<ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
</telerik:RadAjaxManager>
Thanks,
David