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

Appointment Height Zero

3 Answers 82 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 01 Nov 2011, 09:13 AM
Dear Telerik!

Please, advice me on the following issue:

I create an appointment which has a very small duration (e.g. 1 minute). But when it renders it seems to get 0 px height.

Here below is the stack trace.

Can I adjust the appointment height somewhere in the code behind of the page so as to avoid this trouble?

Many thanks!

Stepan.
------------------------
[ArgumentOutOfRangeException: Value of Height must be non-negative. Parameter value: value] System.Web.UI.WebControls.Style.set_Height(Unit value) +8815076 System.Web.UI.WebControls.WebControl.set_Height(Unit value) +30 Telerik.Web.UI.AppointmentControl.CalculateSize() +234 Telerik.Web.UI.DayViewAppointmentControl.CalculateSize() +45 Telerik.Web.UI.Scheduler.Views.RowBuilder..ctor(IList`1 slotList, Int32 maxColumnWidth) +709 Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateViewRows(IList`1 slotLists) +161 Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateInnerContentTable(Control container, IList`1 slotLists) +101 Telerik.Web.UI.Scheduler.Views.Week.GroupedByResource.Renderer.CreateContentTable(SchedulerTopTable topTable) +37 Telerik.Web.UI.Scheduler.Views.Week.GroupedByResource.Renderer.GetInnerContent() +234 Telerik.Web.UI.Scheduler.Views.Week.GroupedByResource.Renderer.GetContent() +93 Telerik.Web.UI.RadScheduler.CreateContent() +122 Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +106 Telerik.Web.UI.RadScheduler.CreateChildControls() +9 System.Web.UI.Control.EnsureChildControls() +102 System.Web.UI.Control.PreRenderRecursiveInternal() +42 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
-----------------------------

3 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 03 Nov 2011, 10:51 AM
Hello Mukhin,

I did not manage to reproduce the behavior in question testing the RadScheduler's demos, online. Could you please test the demos on your machine, and see if this behavior could be reproduced at your end? Here is the link to the online demos: RadScheduler: First Look.

Please also take a look of the following demo, to see how a one-minute lasting appointment looks like, when I test it locally: RadScheduler; One minute lasting appointment.

Greetings,
Ivana
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
Stefan
Top achievements
Rank 1
answered on 03 Nov 2011, 03:19 PM
Dear Ivana,

Thank you very much for your responce.

I forgot to mention the scheduler has EnableExactTimeRendering = "True"

So the appointments do not have to occupy whole number of time slots...

- Stepan.

 

 

 

0
Ivana
Telerik team
answered on 07 Nov 2011, 08:44 PM
Hello Stepan,

For the appointment which have a very small duration, it is expected to be rendered as elements with small height. You could take a look at the online demo, and see how the EnableExactTimeRendering property is used: RadScheduler: Exact Time Rendering.

Could you please explain a little bit more about the scenario you are trying to achieve? Also, you could open a support ticket, and send us a sample project with the issues isolated in it, so we will be able to troubleshoot this behavior locally.

Greetings,
Ivana
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
Tags
Scheduler
Asked by
Stefan
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Stefan
Top achievements
Rank 1
Share this question
or