scheduler appointment text

4 posts, 1 answers
  1. Rajendra
    Rajendra avatar
    10 posts
    Member since:
    Oct 2012

    Posted 19 Oct 2012 Link to this post

    I have some appointments and displaying in scheduler control. If the subject text is only two words its fine since it displays in one line but if the subject is long it goes to second line or third line but I can see only the first line. I want to expand the background rectangle as it expands the subject.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Oct 2012 Link to this post

    Hi Rajendra,

    Try the following CSS to achieve your scenario.

    CSS:
    <style type="text/css">
        .RadScheduler .rsMonthView .rsWrap, .RadScheduler .rsMonthView .rsApt, .RadScheduler .rsMonthView .rsAptOut, .RadScheduler .rsMonthView .rsAptIn, .RadScheduler .rsMonthView .rsAptMid, .RadScheduler .rsMonthView .rsAptContent
        {
            position: static !important;
            height: auto !important;
        }
        .RadScheduler .rsMonthView .rsWrap
        {
            overflow: hidden;
            font-size: 0;
            line-height: 0;
        }
        .RadScheduler .rsMonthView .rsLastWrap
        {
            height: 16px !important;
        }
        .RadScheduler .rsMonthView .rsAptContent
        {
            position: relative !important;
            border-top: 0;
            border-bottom: 0;
            left: 0;
            top: 0;
        }
        * html .RadScheduler .rsMonthView .rsAptIn
        {
            border-width: 0 1px;
            top: 0;
            margin-left: -1px;
            margin-right: -1px;
        }
        * html .RadScheduler .rsMonthView .rsAptMid
        {
            top: 0;
            left: 1px;
            margin: 0 1px;
            border-width: 1px 0;
        }
    </style>

    Please take a look into this for more information.

    Regards,
    Princy.
  3. Rajendra
    Rajendra avatar
    10 posts
    Member since:
    Oct 2012

    Posted 22 Oct 2012 Link to this post

    This solves my problem. Thank you so much. I found there is now small issue. After this css, the right side border of an appointment is not visible. It might be due to one line subject appointment. The appointments displaying in two lines are good and displaing all sides for rectangular border. Is there any changes we need to do for this issue.
    thanks

    Oh.. this happened in multi-day appointment and there is limitation. Is there anyway to do it for multi day?

    Thanks
  4. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2033 posts

    Posted 25 Oct 2012 Link to this post

    Hello Rajendra,

    This workaround comes with this limitation and unfortunately  there is no way to avoid this appearance issue for multi-day appointments in  the RadScheduler MonthView.

    I apologize for any inconveniences.

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