Problem with TimeLine View rendering

8 posts, 0 answers
  1. MI87
    MI87 avatar
    27 posts
    Member since:
    Jul 2010

    Posted 20 Dec 2012 Link to this post

    I have a probleme with TimeLine View
    I use Telerik v 2012.3.1205

    My scheduler is group by ressources.
    I want to display a whole month with TimeLine View ; so I configured my scheduler with this lines :

    this.RadScheduler1.Width = new Unit(3000);
    this.RadScheduler1.TimelineView.NumberOfSlots = 336;
    this.RadScheduler1.TimelineView.SlotDuration = TimeSpan.FromHours(2);
    this.RadScheduler1.TimelineView.TimeLabelSpan = 2;
    this.RadScheduler1.TimelineView.ColumnHeaderDateFormat = @"dd";
    this.RadScheduler1.TimelineView.StartTime = new TimeSpan(0, 0, 0);



    The result is capture n°1 (01_NoProblem) ...
    with, for example, Red appointment from 12/25 to 12/28
    All is right.

    But :
    I don't want to see the "non workable" hours...so, in the RadScheduler1_TimeSlotCreated method, I have the

    folowing lines :
    if (e.TimeSlot.Start.TimeOfDay < new TimeSpan(8, 0, 0)
    || e.TimeSlot.Start.TimeOfDay >= new TimeSpan(18, 0, 0))
    {
        e.TimeSlot.Control.Style.Add(HtmlTextWriterStyle.Width, "0px");
    }
    else
    {         ...        }

    Problem : the Appointments don't appear correctly. (cf. caprture n° 2)
    For exmaple, the Red appointment start from  12/20 to 12/23


    I suspect the HTML style (Width, "0px") is the problem ... or not ?

    How can I achieve this ?

    Thanks in advance
  2. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 21 Dec 2012 Link to this post

    Hello,

     
    Unfortunately such behavior (setting the width of some time slots to 0)is not supported with the current version of RadScheduler due to the specific way the appointments are positioned in this view. Please excuse us for this limitation of our control. As a possible workaround I would suggest you to disable the slots instead of hiding them as it is done in this on-line demo.

    Regards,
    Plamen
    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. MI87
    MI87 avatar
    27 posts
    Member since:
    Jul 2010

    Posted 21 Dec 2012 Link to this post

    Hello

    Thanks Plamen, OK.
    Not possible with Timeline view...

    But with week view...
    For example, cf. capture n° 1

    Is there another way I can reproduce a view like capture n°2 ?

    Regards,
  4. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 21 Dec 2012 Link to this post

    Hi,

     
    I have inspected the issue from the images but unfortunately it can not be achieved with RadScheduler as well.

    Greetings,
    Plamen
    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.
  5. MI87
    MI87 avatar
    27 posts
    Member since:
    Jul 2010

    Posted 06 Feb 2013 Link to this post

    Hello

    1 post before, you wrote "Unfortunately such behavior (setting the width of some time slots to 0)is not supported with the current version of RadScheduler"...

    But can I set the width to 3 or 5 px (for particular column) ?

    Thanks
  6. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 11 Feb 2013 Link to this post

    Hi,

    We do not recommend such custom settings for just some of the time slots because some unusual and unwanted issue may arise with the appointments in RadScheduler.

    Regards,
    Plamen
    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.
  7. MI87
    MI87 avatar
    27 posts
    Member since:
    Jul 2010

    Posted 11 Mar 2013 Link to this post

    Hello

    You do not recommend to use these settings otherwise it does not work properly.
    So,
    Can I register a issue about it?
    Or is there a similar request to hide part of the day (night), on week simple view ?
    What do you recommend as formulation for this request?

    Do I have a chance to have this issue done a day ?

    (we 
    need to renew our Telerik license this month and this functionnality is necessary for our scheduler...)
  8. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 14 Mar 2013 Link to this post

    Hello,

     
    I have added a feature for the issue in our Feedback portal here. You can vote for it and follow its status there.

    Unfortunately at the moment we can not commit on any ETA for this feature request.

    Regards,
    Plamen
    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