Appointment content multiline

4 posts, 0 answers
  1. Ranjan
    Ranjan avatar
    38 posts
    Member since:
    Sep 2011

    Posted 07 Dec 2011 Link to this post

    Hi All,
    In my application I want that if appointment subject is very long then it do not go to next line but in same line '....' should appear in the last. How it will be possible?
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 09 Dec 2011 Link to this post

    Hi Ranjan,

    If you want to display long text for the appointment subject, I suggest you use RadToolTip.

    Best wishes,
    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
  3. Ranjan
    Ranjan avatar
    38 posts
    Member since:
    Sep 2011

    Posted 13 Dec 2011 Link to this post

    Thanks Peter. I am using Rad tooltip for showing detail but on main scheduler i want do display dots so that user know that there is some extra information. You can see attached image. I just want like that.
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 13 Dec 2011 Link to this post

    Hi Ranjan,

    You can handle AppointmentDataBound and try something like this:
    protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
       {
           if (e.Appointment.Subject.Length > 50)
           {
               e.Appointment.Subject = e.Appointment.Subject.Substring(0, 50) + "...";
           }
       }


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