Hi,
I have a rad scheduler to show appointments and i have recently modified it to use web service binding. I have few client side events on it and one of it is OnClientAppointmentClick. When i click on an appointment, i want a new rad panel to show up adjacent to the scheduler. For this i use a dummy button to post back on the OnClientAppointmentClick event. The issue is that after modifying the scheduler to web service binding, the OnClientAppointmentClick event seems to take for ever to load and it is affecting the performance. I am not sure if this is caused because post back is causing a conflict to the web service or not.
This is the client side event I have the issue with:
Is there any way I can improve this?
Thanks,
Meera
I have a rad scheduler to show appointments and i have recently modified it to use web service binding. I have few client side events on it and one of it is OnClientAppointmentClick. When i click on an appointment, i want a new rad panel to show up adjacent to the scheduler. For this i use a dummy button to post back on the OnClientAppointmentClick event. The issue is that after modifying the scheduler to web service binding, the OnClientAppointmentClick event seems to take for ever to load and it is affecting the performance. I am not sure if this is caused because post back is causing a conflict to the web service or not.
<
telerik:RadScheduler
runat
=
"server"
ID
=
"rsTicketsSchedule"
OnResourcesPopulating
=
"rsTicketsSchedule_ResourcesPopulating"
SelectedView
=
"TimelineView"
OnTimeSlotCreated
=
"rsTicketsSchedule_TimeSlotCreated"
OnClientAppointmentsPopulated
=
"OnClientAppointmentsPopulated"
OnClientAppointmentsPopulating
=
"OnClientAppointmentsPopulating"
OnClientResourcesPopulating
=
"OnClientResourcesPopulating"
AppointmentStyleMode
=
"Default"
OnClientAppointmentClick
=
"singleClick"
OnClientAppointmentCreated
=
"OnAppointmentCreated"
OnClientAppointmentDoubleClick
=
"rsClientAppointmentDoubleClick"
OnClientAppointmentMoveEnd
=
"AppointmentMoved"
OnClientAppointmentResizeStart
=
"OnAppointmentResizeStart"
OnClientAppointmentResizeEnd
=
"OnAppointmentResizeEnd"
OnClientAppointmentWebServiceDeleting
=
"OnAppointmentDeleting"
OnClientAppointmentWebServiceUpdating
=
"OnAppointmentUpdating"
OnClientRequestSuccess
=
"OnClientRequestSuccess"
OnClientRequestFailed
=
"OnClientRequestFailed"
OnClientAppointmentMoveStart
=
"StopTimer"
OnClientAppointmentDataBound
=
"OnClientAppointmentDataBound"
OnClientDataBound
=
"onSchedulerDataBound"
AllowInsert
=
"False"
DisplayDeleteConfirmation
=
"True"
Localization-HeaderToday
=
"Today"
EnableCustomAttributeEditing
=
"True"
EnableDescriptionField
=
"True"
Height
=
"100%"
EnableExactTimeRendering
=
"true"
EnableViewState
=
"true"
OverflowBehavior
=
"Scroll"
ShowAllDayRow
=
"false"
OnClientAppointmentContextMenu
=
"OnClientAppointmentContextMenu"
OnClientAppointmentContextMenuItemClicked
=
"handleClick"
OnClientNavigationComplete
=
"OnClientNavigationComplete"
OnClientNavigationCommand
=
"OnClientNavigationCommand"
>
<
DayView
UserSelectable
=
"True"
GroupBy
=
"TechName"
GroupingDirection
=
"Horizontal"
/>
<
WeekView
UserSelectable
=
"True"
GroupBy
=
"TechName"
GroupingDirection
=
"Vertical"
/>
<
MonthView
UserSelectable
=
"True"
GroupBy
=
"TechName"
GroupingDirection
=
"Vertical"
/>
<
TimelineView
GroupBy
=
"TechName"
ColumnHeaderDateFormat
=
"h:mm tt"
GroupingDirection
=
"Vertical"
HeaderDateFormat
=
"MM/dd/yyyy h:mm tt"
NumberOfSlots
=
"21"
SlotDuration
=
"00:30:00"
StartTime
=
"08:00:00"
/>
<
WebServiceSettings
Path
=
"WorkforceServices/M4SchedulerWebService.asmx"
ResourcePopulationMode
=
"ServerSide"
/>
<
AppointmentContextMenus
>
<
telerik:RadSchedulerContextMenu
ID
=
"RsTicketsScheduleContextMenu"
runat
=
"server"
> </
telerik:RadSchedulerContextMenu
>
</
AppointmentContextMenus
>
<
ResourceTypes
>
<
telerik:ResourceType
Name
=
"TechName"
/>
<
telerik:ResourceType
Name
=
"TicketState"
/>
</
ResourceTypes
>
</
telerik:RadScheduler
>
This is the client side event I have the issue with:
OnClientAppointmentClick
=
"singleClick"
function singleClick(sender, eventArgs) {
var apptID1 = eventArgs.get_appointment().get_id();
apptIDInfo = "ShowRadTabStrip|" + apptID1 + "|ApptID";
__doPostBack("TestPanel1UpdBtn", apptIDInfo); //Causes Postback to show RadTabstrip for TicketInfo
return false;
}
Is there any way I can improve this?
Thanks,
Meera