This is a migrated thread and some comments may be shown as answers.

Navigation pane in Radscheduler

7 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Balaji
Top achievements
Rank 1
Balaji asked on 09 May 2012, 06:08 AM
Navigation Pane in radscheduler gets skip. When i try to navigating to weekly base or monthly base , it is navigate to other part, after that it stops to navigate and again to navigate previous week, it skips that week and show the before one. It skips the in between week scheduled. Can u please help me to sort out this problem.

7 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 10 May 2012, 11:12 AM
Hello Balaji,

 
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. 

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
Balaji
Top achievements
Rank 1
answered on 10 May 2012, 01:45 PM

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
0
Balaji
Top achievements
Rank 1
answered on 14 May 2012, 08:23 AM
Hi admin,

Plz, help me to sortout this issue.

Thanks
0
Plamen
Telerik team
answered on 14 May 2012, 09:23 AM
Hi Balaji,

 
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.

Kind 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
Balaji
Top achievements
Rank 1
answered on 11 Jun 2012, 10:52 AM
Hi,

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.

 

 

 

0
Plamen
Telerik team
answered on 14 Jun 2012, 09:29 AM
Hi Balaji,

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
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
Balaji
Top achievements
Rank 1
answered on 14 Jun 2012, 10:50 AM
Thanks alot. Its working now
Tags
General Discussions
Asked by
Balaji
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Balaji
Top achievements
Rank 1
Share this question
or