Timeline view: appointment assuming different colors on different slot

10 posts, 0 answers
  1. Jean-Marc
    Jean-Marc avatar
    93 posts
    Member since:
    Mar 2011

    Posted 23 May 2012 Link to this post

    I guess this question was asked in this thread which has a help link expired

    I have a timeline view, one slot each day.
    Let's say there's an appointment that last 7 days. I would like, programmatically, to have it coloured blue for the first 4 days and red the remaing 3 days (better, setting css style), is it possible?
    Thank you
  2. Jean-Marc
    Jean-Marc avatar
    93 posts
    Member since:
    Mar 2011

    Posted 24 May 2012 Link to this post

    anyone?
  3. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 24 May 2012 Link to this post

    Hello Jean-Marc,

    Yes, this is possible. Please, see the Customizing the Time Slots demo or the Setting special days or time slots in RadScheduler kb article.


    Regards, Peter
    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.
  4. Jean-Marc
    Jean-Marc avatar
    93 posts
    Member since:
    Mar 2011

    Posted 25 May 2012 Link to this post

    No, I don't want to have different stile in timeline slot. I want to know if it is possible to have different style within an appointment that lay on some slots.
  5. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 25 May 2012 Link to this post

    Hi Jean-Marc,

    Yes, you can set the styles for the different appointments as explained in the following help topic: http://www.telerik.com/help/aspnet-ajax/scheduler-appearance-setting-appointment-style.html

    Kind regards,
    Kate
    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.
  6. Jean-Marc
    Jean-Marc avatar
    93 posts
    Member since:
    Mar 2011

    Posted 25 May 2012 Link to this post

    I can not explain myself...
    i'm not looking for how to get different colors for different apppointements...
    I need, for ONE appointement, to colour it in different style depending on which slot it lays. if possible

    example:
    my appointement start date: 1/6/2012
    my appointement end date: 4/6/2012

    1/6/2012 appoitement coloured of red
    2/6/2012 appoitement coloured of yellow
    3/6/2012 appoitement coloured of blue
    4/6/2012 appoitement coloured of white
  7. Jean-Marc
    Jean-Marc avatar
    93 posts
    Member since:
    Mar 2011

    Posted 28 May 2012 Link to this post

    It's quite urgent, what can i do?
  8. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 28 May 2012 Link to this post

    Hello Jean-Marc,

    Thank you for clarifying. In general when you have a multiday appointment (as in the attached image), the appointment itself renders as a div element  that can not be divided in separate slots so you can style them. However, if you create a recurring appointment you can achieve the desired look. For instance, using the server side AppointmentCreated event you can add your logic (you could check by date for instance) and apply different colors as described in the article that I previously suggested.

    Greetings,
    Kate
    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.
  9. Jean-Marc
    Jean-Marc avatar
    93 posts
    Member since:
    Mar 2011

    Posted 28 May 2012 Link to this post

    thank you Kate
    may I ask you if you can please take care of the other argument I asked?
  10. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 29 May 2012 Link to this post

    Hi Jean-Marc,

    I notice that my colleague has already answered your post. Please note that if you need a timely response it is better to open a support ticket as Plamen has mentioned. 

    Greetings,
    Kate
    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