| <telerik:RadScheduler ID="RadScheduler1" |
| runat="server" |
| HoursPanelTimeFormat="htt" |
| DataKeyField="Identifier" |
| DataStartField="EventTimeStartDate" |
| DataEndField="EventTimeEndDate" |
| DataSubjectField="Title" |
| onappointmentcreated="RadScheduler1_AppointmentCreated" |
| OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" |
| SelectedView="MonthView" |
| ReadOnly="true" |
| AllowDelete="false" |
| AllowEdit="false" |
| AllowInsert="false" |
| Skin="Office2007" |
| DayStartTime="08:00:00" |
| DayEndTime="18:00:00" |
| TimelineView-UserSelectable="false" |
| DayView-UserSelectable="true" |
| WeekView-UserSelectable="true" |
| MonthView-UserSelectable="true" |
| Width="400" |
| Height="400" |
| RowHeight="20" |
| MonthView-HeaderDateFormat="MMM yyy" |
| WeekView-HeaderDateFormat="dd MMM yyy" |
| DayView-HeaderDateFormat="dddd, dd MMM yyy" |
| OnNavigationCommand="RadScheduler_NavigationCommand" |
| ValidationGroup="ctl00_RadScheduler1" |
| Culture="English (Australia)" |
| Font-Size="XX-Small"> |

| <table> |
| <thead> |
| </thead> |
| <tbody> |
| <tr> |
| <td> </td> |
| <td> </td> |
| </tr> |
| <tr> |
| <td> </td> |
| <td> </td> |
| </tr> |
| </tbody> |
| </table> |
| <p> |
| <table> |
| <tbody> |
| <tr> |
| <td> </td> |
| <td> </td> |
| </tr> |
| <tr> |
| <td> </td> |
| <td> </td> |
| </tr> |
| </tbody> |
| </table> |
| </p> |

| <telerik:RadSlider ID="week" runat="server" AnimationDuration="400" |
| Height="70px" ItemType="item" Width="350px" > |
| </telerik:RadSlider> |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!IsPostBack) |
| { |
| initialize_week(); |
| } |
| } |
| public void initialize_week() |
| { |
| for (int i = 7; i >= 0; i--) |
| { |
| String value = |
| DateTime.Now.AddDays((-7) * i).ToString(); |
| RadSliderItem item = new RadSliderItem( |
| DateTimeTreatment.GetWeekNumber( |
| DateTime.Now.AddDays((-7) * i)).ToString(),value); |
| week.Items.Add(item); |
| week.DataBind(); |
| } |
| } |
Hello,
I was testing the difference between a scheduler populated server side and another one populated with a Web Service and was surprised to note a difference on the appointments rendering.
Both Schedulers display same appointments and are configured to show 30 minutes per row.
I did a screen shot to show you these weird differences.
It seems the server appointments rendering engine is not exactly the same than the client-side one.
Is it a bug?
By the way, if we take ‘Appointment n°3’ EndDate as example, neither the server nor the client rendering represents correctly the appointment.
The End Time is 20:35:00.
In the web service rendering it shows something like ~20:15:00, and in the server rendering 21:00:00 whereas (I can imagine) it should be rendered as 20:30:00.
If TypeOf e.Item Is GridDataItem Then
Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
For Each cell As TableCell In item.Cells
cell.Style(
"text-align") = "left"
cell.Style(
"font-size") = "10pt"
item.BackColor = RadGrid1.MasterTableView.AlternatingItemStyle.BackColor
Next
End If
