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

Scheduler differents problem (design/functions)

4 Answers 52 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Hans van Rijnswoud
Top achievements
Rank 2
Hans van Rijnswoud asked on 05 Jan 2012, 01:47 PM
<telerik:RadScheduler runat="server" ID="RadScheduler1" Width="100%" DataKeyField="Id"
                   DataSubjectField="Subject" DataStartField="StartDate" DataEndField="EndDate"
                   DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID"
                   Height="800px" SelectedView="WeekView" OnAppointmentInsert="RadScheduler_OnInsert"
                   OnAppointmentUpdate="RadScheduler_OnUpdate" OnAppointmentDelete="RadScheduler_OnDelete"
                   EnableDescriptionField="true" AppointmentStyleMode="Default" ShowFooter="true"
                   StartInsertingInAdvancedForm="true" StartEditingInAdvancedForm="true" Reminders-Enabled="false"
                   OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" OnAppointmentCreated="RadScheduler1_AppointmentCreated"
                   Skin="Vista" DataDescriptionField="Description" DataReminderField="Reminder">
                   <TimeSlotContextMenuSettings EnableDefault="true" />
                   <AppointmentContextMenuSettings EnableDefault="true" />
                   <AdvancedForm Modal="true" />
                   <ResourceTypes>
                       <telerik:ResourceType KeyField="UserId" Name="User" TextField="UserNameFull" ForeignKeyField="AdverUserID"
                           DataSourceID="ObjDataSourceUsers" />
                   </ResourceTypes>
                   <AppointmentTemplate>
                       <div>
                           <asp:panel id="pRecurrence" runat="server" cssclass="rsAptRecurrence" visible="false" />
                           <asp:panel id="pReminder" runat="server" cssclass="rsAptReminder" visible="false" />
                           <asp:panel id="pRecurrenceException" runat="server" cssclass="rsAptRecurrenceException"
                               visible="false" />
                           <%#Eval("Subject") %>
                           <small>(<%#Eval("Start","{0:hh:mm}")%>)</small>
                       </div>
                       <hr />
                       <div style="height: 30px;">
                           Assigned to: <strong>
                               <asp:label id="lUser" runat="server" text='<%# Container.Appointment.Resources.GetResourceByType("User") == null ? "Geen" : Container.Appointment.Resources.GetResourceByType("User").Text %>' />
                           </strong>
                       </div>
                   </AppointmentTemplate>
               </telerik:RadScheduler>
               <asp:objectdatasource id="ObjDataSourceUsers" runat="server" typename="Data.Core.Aspnet_User"
                   selectmethod="GetAllActive"></asp:objectdatasource>
Hi,

We use the laste version of telerik Q3 2011 and we just implement the scheduler in our application.
We have differents problems and until now no solution for it.
1/ When we navigate in the scheduler (selectedView is WeekView) after a couple of click the design is completely broked (see print screen in attachment). This problem is present only in IE9.

2/ We use OnAppointmentInsert, OnAppointmentDatabound, OnAppointmentCreated, etc to Insert, update and deleten an appointment.
When we create a new appointment is not a problem. The scheduler show directly the new appointment. If we want to update or delete this appointemnt nothing append. When I debug with VisualStudio also nothing append. If I refresh the all page and try again than is working wel.

The core that we use is :

For ASPX



The code C#:

protected void RadScheduler_OnInsert(object sender, AppointmentInsertEventArgs e)
       {
           Save(0,e.Appointment);
       }
 
       protected void RadScheduler_OnUpdate(object sender, AppointmentUpdateEventArgs e)
       {
           var apId = e.ModifiedAppointment.ID;
           Save(int.Parse(apId.ToString()),e.ModifiedAppointment);
       }
 
       protected void RadScheduler_OnDelete(object sender, AppointmentDeleteEventArgs e)
       {
           var apId = e.Appointment.ID;
           Appointment.DeleteById(int.Parse(apId.ToString()));
       }

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 06 Jan 2012, 08:28 AM
Hi Edwin,

1. The appearance problem is a known issue which we have logged and will fix in the future. If you can send us a sample via a support ticket that steadily reproduces the problem, we will try to provide you with a workaround.

2. Please, call RadScheduler's Rebind() method at the end of the Update and Delete methods and let me know if this helps.

Kind regards,
Peter
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
Hans van Rijnswoud
Top achievements
Rank 2
answered on 06 Jan 2012, 02:23 PM
Hi Peter,

Thanks you for your answer.

1/ I will try next week to prepare a sample with this problem for you.
2/ I already tried this but it does not work (Rebind). When I create a new appointment and try directly to delete it, nothing happend.

In advance thanks for your help.

Regards,
Edwin.
0
Peter
Telerik team
answered on 06 Jan 2012, 03:20 PM
Hi Edwin,

We will then wait for your sample. Please, make sure that the second issue is also reproduced with it.

Thank you for your understanding.

All the best,
Peter
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
Hans van Rijnswoud
Top achievements
Rank 2
answered on 15 Jan 2012, 07:49 AM
Hi Peter,

I was very busy with a new release so I'm not completely ready with the sample ;-)

I send to you this sample project ASAP.

Thanks for your message.

Regards,

Edwin.
Tags
Scheduler
Asked by
Hans van Rijnswoud
Top achievements
Rank 2
Answers by
Peter
Telerik team
Hans van Rijnswoud
Top achievements
Rank 2
Share this question
or