Various simple questions

6 posts, 2 answers
  1. Max Figueredo
    Max Figueredo avatar
    10 posts
    Member since:
    May 2009

    Posted 10 Feb 2011 Link to this post

    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:

    1. Is it possible to disable the timeline view all together, so that only day, week and monthly views are available ?

    2. 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.

    3. 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.

    4. 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
  2. Answer
    Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 11 Feb 2011 Link to this post

    Hi Max Figueredo,

    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.
  3. Max Figueredo
    Max Figueredo avatar
    10 posts
    Member since:
    May 2009

    Posted 11 Feb 2011 Link to this post

    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.

  4. Max Figueredo
    Max Figueredo avatar
    10 posts
    Member since:
    May 2009

    Posted 24 Feb 2011 Link to this post

    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:

    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 !!!
  5. Answer
    Jeremy
    Jeremy avatar
    10 posts
    Member since:
    Feb 2011

    Posted 24 Feb 2011 Link to this post

    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"

     

     

     

     

     

     

    >
     

     

     

  6. Max Figueredo
    Max Figueredo avatar
    10 posts
    Member since:
    May 2009

    Posted 24 Feb 2011 Link to this post

    This is exactly what I was looking for, thanks Jeremy !!
Back to Top