Appointment Height Zero

4 posts, 0 answers
  1. Stefan
    Stefan avatar
    8 posts
    Member since:
    Jan 2011

    Posted 01 Nov 2011 Link to this post

    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
    -----------------------------

  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 03 Nov 2011 Link to this post

    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
  3. Stefan
    Stefan avatar
    8 posts
    Member since:
    Jan 2011

    Posted 03 Nov 2011 Link to this post

    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.

     

     

     

  4. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 07 Nov 2011 Link to this post

    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
Back to Top