
Max Figueredo
Top achievements
Rank 1
Max Figueredo
asked on 11 Feb 2011, 12:10 AM
Hello there, I just started using this control, and love it. I just have a few questions that I haven't been able to find through the demos yet:
- Is it possible to disable the timeline view all together, so that only day, week and monthly views are available ?
- Is it possible to add line breaks to the appointment subject text ?, I tried adding \n and/or <br> to the subject string, but they are not rendered as line breaks.
- In the monthly view, the appointment subject is trimmed because the appointment boxes are too small. I need the boxes to expand to accommodate large appointment subject strings, even if it means expanding the calendar row as well.
- I am wondering if there is an easy way to programmatically detect appointment conflicts ?
Any help/pointers would be greatly appreciated, thank you very much !
Max
Max
5 Answers, 1 is accepted
0
Accepted
Hi Max Figueredo,
We are
1) To disable the TimeLine View - you'll need to set the UserSelectable property of the RadScheduler to "false':
2) The solution is to use an AppointmentTemplate:
3) You can expand the height of the rows in the RadScheduler via RowHeight property.
4) I am not sure what do you mean in "if there is an easy way to programmatically detect appointment conflicts". Could you please be more specific?
Regards,
Veronica Milcheva
the Telerik team
We are
1) To disable the TimeLine View - you'll need to set the UserSelectable property of the RadScheduler to "false':
<
TimelineView
UserSelectable
=
"false"
/>
2) The solution is to use an AppointmentTemplate:
<
AppointmentTemplate
>
<%# Eval("Subject") %>
</
AppointmentTemplate
>
3) You can expand the height of the rows in the RadScheduler via RowHeight property.
4) I am not sure what do you mean in "if there is an easy way to programmatically detect appointment conflicts". Could you please be more specific?
Regards,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

Max Figueredo
Top achievements
Rank 1
answered on 11 Feb 2011, 05:36 PM
Great answers Veronica, thank you so much !
Please ignore #4, I'll think about it and post a more specific question later if I need to.
Please ignore #4, I'll think about it and post a more specific question later if I need to.
0

Max Figueredo
Top achievements
Rank 1
answered on 24 Feb 2011, 05:18 PM
Hi Veronica,
Another question came up regarding item #2 of my original request, which was about how to insert line breaks inside appointments. Your reply was to use AppointmentTemplate, which does trick.
However, I need to display on the appointmentTemplate fields that are included in the original dataItem of the datasource, but when I use the Eval("field") syntax, of course I get an error saying:
I understand it is because the field is in the original dataItem from the dataSource, not necessarily part of the Appointment object, I can only seem to access Subject, description and appointment related fields, but there are more fields in the original dataItem that I need to format and display in the Appointment.
So is there a way to access those fields from AppointmentTemplate ?
Thank you !!!
Another question came up regarding item #2 of my original request, which was about how to insert line breaks inside appointments. Your reply was to use AppointmentTemplate, which does trick.
However, I need to display on the appointmentTemplate fields that are included in the original dataItem of the datasource, but when I use the Eval("field") syntax, of course I get an error saying:
DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'crs_del_type'.
I understand it is because the field is in the original dataItem from the dataSource, not necessarily part of the Appointment object, I can only seem to access Subject, description and appointment related fields, but there are more fields in the original dataItem that I need to format and display in the Appointment.
So is there a way to access those fields from AppointmentTemplate ?
Thank you !!!
0
Accepted

Jeremy
Top achievements
Rank 1
answered on 24 Feb 2011, 05:25 PM
Inside the radScheduler there is a property for CustomAttributeNames. You need to define those data items in there. Hope this helps
<telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="TimelineView"
CustomAttributeNames=" Define dataitems here"
>
0

Max Figueredo
Top achievements
Rank 1
answered on 24 Feb 2011, 06:47 PM
This is exactly what I was looking for, thanks Jeremy !!