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

RadScheduler timeline view with a lot of appointment

4 Answers 50 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tommy
Top achievements
Rank 1
Tommy asked on 23 Jan 2013, 04:13 PM
I have a radscheuler with RowHeight set to 205px. In timeline view , when I have a lot of appointment at a same time, I have the following error : 

1: Error Description:Specified argument was out of the range of valid values.
Parameter name: value
1: Source:System.Web
1: Stack Trace:   at System.Web.UI.WebControls.Unit..ctor(Double value, UnitType type)
1:    at Telerik.Web.UI.Scheduler.Views.TimelineAllDayTable.CreateAllDayCells(WebControl row, Dictionary`2 appointmentControls)
1:    at Telerik.Web.UI.Scheduler.Views.SchedulerAllDayTable.AddRow(IList`1 allDaySlots, Dictionary`2 appointmentControls)
1:    at Telerik.Web.UI.Scheduler.Views.Timeline.RendererBase.CreateInnerContentTable(Control container, IList`1 allTimeLineSlots)
1:    at Telerik.Web.UI.Scheduler.Views.Timeline.RendererBase.CreateInnerContentTable(Control container, IList`1 intervalSlots, Int32 minimumRowCount)
1:    at Telerik.Web.UI.Scheduler.Views.Timeline.Renderer.GetInnerContent()
1:    at Telerik.Web.UI.Scheduler.Views.Timeline.Renderer.GetContent()
1:    at Telerik.Web.UI.RadScheduler.CreateContent()
1:    at Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource)
1:    at Telerik.Web.UI.RadScheduler.CreateChildControls()
1:    at System.Web.UI.Control.EnsureChildControls()
1:    at Telerik.Web.UI.RadScheduler.OnPreRender(EventArgs e)
1:    at System.Web.UI.Control.PreRenderRecursiveInternal()
1:    at System.Web.UI.Control.PreRenderRecursiveInternal()
1:    at System.Web.UI.Control.PreRenderRecursiveInternal()
1:    at System.Web.UI.Control.PreRenderRecursiveInternal()
1:    at System.Web.UI.Control.PreRenderRecursiveInternal()
1:    at System.Web.UI.Control.PreRenderRecursiveInternal()
1:    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
1: Target Site:Void .ctor(Double, System.Web.UI.WebControls.UnitType)
----------------------------------------------

I already had a similar issue in my code and it was because max Unit type size is 32767 pixels. 

Tom 

4 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 28 Jan 2013, 03:51 PM
Hello Tommy,

Unfortunately I am not able to reproduce that issue locally. Could you please try to elaborate a bit more on your scenario? Could you please clarify approximately how many appointments will cause that behavior, so we can be able to replicate it. Providing your markup code will be very helpful as well.

Kind regards,
Boyan Dimitrov
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
Tommy
Top achievements
Rank 1
answered on 28 Jan 2013, 04:10 PM
Hi Boyan,

the maximum pixel we can set in a .Net Unit type is 32767. So with RowHeight at 205px, there must have at least 160 appointments to reproduce the bug. I resolved the similar issue that I had by setting the height of my object on client side using JQuery instead of setting it on server side.

thanks 

Tommy
0
Boyan Dimitrov
Telerik team
answered on 30 Jan 2013, 03:49 PM
Hello Tommy,

I may confirm that I reproduced the described issue locally. Indeed using RowHeight set to 205 pixels and having more than 160 appointments for specific day is causing that exception.
I already logged it as a bug in our system for future fixing.
I would recommend using smaller RowHeight value that will not exceed the maximum pixel in .NET Unit type.

Thank you for your cooperation.

Regards,
Boyan Dimitrov
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
Srivalli
Top achievements
Rank 1
answered on 05 Dec 2016, 08:40 PM
HI,
Im using Scheduler in my application and selected view is Timeline view and populating all the records on sort by order it displays correctly on some dates and on some dates is not sorted. Please help me.I also noticed that if I have more than 16 appointments on a day the order is missing, would you please let me know where Im wrong, query works perfect on sql. following is the code and attached is the screen shot 12/5 second column is missing the order and have more than 16 appointments. when I delete 1 appointment order works fine. 
Please help me on this
<telerik:RadScheduler runat="server" ID="RadScheduler1" Skin="Metro" TimeZoneID="Eastern Standard Time" CustomAttributeNames="Service,CallTypeName ,ResName,AttName, Subject,NPName,Intern,OtherName" RowHeight="50px" StartInsertingInAdvancedForm="true"
        Height="950px" Width="1345px" DataSourceID="CalendarEntries" AppointmentStyleMode="Default" AllowInsert="false" AllowEdit="false"
        DataKeyField="ID" DataSubjectField="Subject" DataStartField="FromDate" DataEndField="EndDate" DataDescriptionField="ResidentName" SelectedView="TimelineView" TimelineView-NumberOfSlots="5"
        OverflowBehavior="Auto" OnAppointmentDelete="RadScheduler1_AppointmentDelete" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" DayStartTime="06:00:00"
        DayEndTime="23:00:00" DayView-DayStartTime="06:00:00" DayView-DayEndTime="24:00:00" OnAppointmentClick="RadScheduler1_AppointmentClick">
        <AdvancedForm Modal="true"></AdvancedForm>
        <Localization ConfirmDeleteText="Are you sure you want to delete this appointment?" />
        <DayView DayStartTime="06:00:00" DayEndTime="23:59:00"></DayView>
        <AgendaView UserSelectable="true" ResourceMarkerType="Block" />
        <AppointmentTemplate>

            <%-- <br />
                                <asp:Label runat="server" ID="AssignedTo"></asp:Label>--%>
            <%#Eval("CallTypeName") %> - <%#Eval("AttName") %> - <%#Eval("ResName") %> - <%#Eval("NPName") %>  - <%#Eval("Intern") %> - <%#Eval("OtherName") %>
        </AppointmentTemplate>

        <TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
        <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
    </telerik:RadScheduler>
Tags
Scheduler
Asked by
Tommy
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Tommy
Top achievements
Rank 1
Srivalli
Top achievements
Rank 1
Share this question
or