This is a migrated thread and some comments may be shown as answers.

Appointment Size in Month View

7 Answers 145 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Libertas Technologies
Top achievements
Rank 1
Libertas Technologies asked on 13 Nov 2009, 04:20 PM

I know this topic has come up in a variety of ways, but is there a setting, or a hack to set the height of an appointment to "auto" where it will be big enough to display content specified for an appointment.

I know there is a RowHeight property that can be adjusted to show this, but that's still somewhat sloppy because there is no way of knowing the "biggest" appointment. When using an appointment template below, appointments with a short subject, will become quite large. And there may be a case where an appointment is created with a title that is longer than what is accounted for using the RowHeight property.

        <AppointmentTemplate> 
                <asp:HyperLink ID="hlSubject" runat="server" /><br /> 
                <div><%#CDate(Eval("Start")).ToShortTimeString()%></div>  
        </AppointmentTemplate> 

The rendering of the control with that template is attached.

7 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 16 Nov 2009, 03:20 PM
Hello Todd,

There is a workaround you can try, but it may malfunction for certain cases:
.RadScheduler .rsMonthView .rsWrap,    
        .RadScheduler .rsMonthView .rsAptOut,    
        .RadScheduler .rsMonthView .rsAptMid,    
        .RadScheduler .rsMonthView .rsApt   
        {    
        height: auto !important;    
        }   
    
        .RadScheduler .rsMonthView .rsAptIn,   
        .RadScheduler .rsMonthView .rsAptContent   
        {   
        height: 100% !important;   
        }   
    
        .RadScheduler .rsMonthView .rsApt    
        {    
        position: static !important;    
        }  



Best wishes,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
George Belardo
Top achievements
Rank 1
answered on 12 Mar 2010, 09:16 PM
Peter:
I used your suggestion and it was working great until I installed the Q1 2010 dll.
Now, each appointment takes up the entire height of the cell in the month view.
Even in cells where there is more than one appointment, I only see one appointment since it fills up the day's cell.
Any ideas?

Thanks,
George
0
Peter
Telerik team
answered on 17 Mar 2010, 03:33 PM
Hello George,

The good news is that we have just prepared a kb article for this case:

http://www.telerik.com/support/kb/aspnet-ajax/scheduler/auto-expand-the-height-of-the-appointment.aspx

Let me know if you have further questions.


Cheers,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
George Belardo
Top achievements
Rank 1
answered on 17 Mar 2010, 04:55 PM
The fix works great, but I'm having a slight problem with words getting cut off.  As you can see in the attached screenshot, in several cases (e.g., on the 15th, 17th and 19th) , the words in the appointment get cut off instead of automatically starting a new line before or after a word.  Any suggestions?
0
Peter
Telerik team
answered on 17 Mar 2010, 05:16 PM
Hello George,

This problem will occur only in IE6. Unfortunately, it cannot be avoided for this browser. Let us know if notice any problems with other browsers.

Cheers,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Anup
Top achievements
Rank 2
answered on 16 Apr 2012, 02:39 PM
Hi!
Have yo done! this in wpf...

may i know for wpf how can it be possible

Thank you...
0
Peter
Telerik team
answered on 16 Apr 2012, 04:05 PM
Hi Anup,

Please, post your query in the RadScheduler for WPF forum.

Kind 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.
Tags
Scheduler
Asked by
Libertas Technologies
Top achievements
Rank 1
Answers by
Peter
Telerik team
George Belardo
Top achievements
Rank 1
Anup
Top achievements
Rank 2
Share this question
or