7 Answers, 1 is accepted
It is not very clear what in is not working properly. Would you please elaborate a little bit and let us know if this is observed in some of our on-line demos or provide some steps and code that will help us reproduce it.
Plamen Zdravkov
the Telerik team
Hi Admin,
Thank you very much for the reply.
I used the radscheduler in my app. There are many appointments scheduled for different dates. In the top, there is a navigation arrow button to navigating the scheduled by day,week and months. At first time, i try to click next button it shows the next week of scheduled appoinments, after it is not working. it s stop there. When i try to navigate to see the previous one, it skips that page and shows the previous part of the week. One more time i clicked that next button, it remains the same page. It strucks there only. Here i attached the some screenshots for process flow. Plz, find the attachment.
Thanks
Plz, help me to sortout this issue.
Thanks
This behavior is quite unusual indeed but unfortunately it can not be observed in any one of our demos. In such cases the only way to help you sort it out is if you share the custom code related to RadScheduler that you use in your scenario so we are able to reproduce the same behavior locally.
Please clarify the version of our controls that you are using as well.
Plamen Zdravkov
the Telerik team
Here i posted my code :
<telerik:RadScheduler runat="server" ID="RadScheduler1" Width="850px" Height="440px"
SelectedDate="2007-03-30" DataSourceID="AppointmentsDataSource" DataKeyField="ID"
DataSubjectField="Subject" DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule"
DataRecurrenceParentKeyField="RecurrenceParentId" TimeZoneOffset="00:00:00" OnAppointmentCreated="RadScheduler1_AppointmentCreated"
GroupBy="Clinician" StartInsertingInAdvancedForm="True" CustomAttributeNames="UpdDet,CreatedDet, HospDisch, HospDischDt, ClientNo,AppointmentColor,ClientName,EnableRecurrence,pickup,apt_remind_to_clin,apt_remind_to_clnt"
OnClientAppointmentInserting="onAppointmentInserting" RowHeight="16px" OnClientAppointmentMoving="onAppointmentMoving"
ShowFooter="False" OnClientAppointmentMoveEnd="onAppointmentMoveEnd" OnClientFormCreated="schedulerFormCreated"
OnClientAppointmentResizing="onAppointmentResizing" DayView-WorkDayEndTime="20:00"
OnClientAppointmentResizeEnd="onAppointmentResizeEnd" WorkDayEndTime="20:00"
AdvancedForm-Width="1000px" DayEndTime="20:00" TimeLabelRowSpan="6" MinutesPerRow="5"
Skin="WebBlue" HoursPanelTimeFormat="h:mm tt" ValidationGroup="RadScheduler1" DisplayRecurrenceActionDialogOnMove ="true"
ShowAllDayRow="true" >
<TimelineView StartTime="08:00" TimeLabelSpan="60" NumberOfSlots="144" SlotDuration="00:05:00" />
<AdvancedForm Modal="True" DateFormat="M/d/yyyy" TimeFormat="h:mm tt" />
<TimelineView UserSelectable="False" />
<WeekView UserSelectable="True" />
<MonthView UserSelectable="True" />
<DayView UserSelectable="True" />
Here is my code behind:
Protected Sub RadScheduler1_NavigationComplete(ByVal sender As Object, ByVal e As SchedulerNavigationCompleteEventArgs)
RadCalendar1.FocusedDate = RadScheduler1.SelectedDate
End Sub
Private Sub RadScheduler1_NavigationCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerNavigationCommandEventArgs) Handles RadScheduler1.NavigationCommand
Dim dt As Object
Dim validt As DateTime
dt = e.SelectedDate
If Not dt Is Nothing Then
If DateTime.TryParse(dt, validt) Then
RadScheduler1.SelectedDate = CType(validt, Date)
RadCalendar1.SelectedDate = CType(validt, Date)
GetEndTimeAndSiteDet()
RadScheduler1.Rebind()
RadCalendar1.FocusedDate = RadScheduler1.SelectedDate
lbl_sched_date.Text = RadCalendar1.SelectedDate.ToString.Trim
End If
End If
End Sub
Thanks.
It seems that the issue is observed because you are resetting the selected date of RadScheduler in the NavigationCommand event.If you want to preserve the ordinary navigation functionality that is implemented in RadScheduler you will have to remove the following code in yellow:
If
Not
dt
Is
Nothing
Then
If
DateTime.TryParse(dt, validt)
Then
RadScheduler1.SelectedDate =
CType
(validt,
Date
)
RadCalendar1.SelectedDate =
CType
(validt,
Date
)
GetEndTimeAndSiteDet()
RadScheduler1.Rebind()
Hope this will explain the issue.
All the best,
Plamen Zdravkov
the Telerik team