Nested list in AppointmentTemplate

5 posts, 0 answers
  1. David Tabatadze
    David Tabatadze avatar
    9 posts
    Member since:
    Apr 2010

    Posted 16 May 2011 Link to this post

    Hey.

    I am using RadSheduler and it's  AppointmentTemplate.

    In my ObjectDataSource for RadSheduler i have Tour objects, each of them include list of Drivers oneself (one tour may have many drivers).

    like this:

    Class Tour{                                    Class Driver{ 
       int ID,                                       int ID,
       Datetime StartDate,                           string Name,
       Datetime Enddate,                             Datetime Start, 
       List<Driver> Drivers                          Datetime End 
    }                                              }

    So, my sheduler datasource is list of tours.

    Now i want to achieve these:

       1.) show the list of drivers in my AppointmentTemplate for each tour (main goal) - what is the best way to do this?

       2.) each driver has start and end dates (start represents the date when the driver started or joined the tour), they are alway between the tour's StartDate and EndDate. So, i'd like the driver name to appear under the date when he joined the tour. For instance - if tour StartDate is May 2, and driver1 started the tour, and driver2 joined on May 4 AppointmentTemp to look like something as in attached file. Is that possible anyway?

    thanks.

  2. David Tabatadze
    David Tabatadze avatar
    9 posts
    Member since:
    Apr 2010

    Posted 18 May 2011 Link to this post

    Can someone response me please?
  3. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 20 May 2011 Link to this post

    Hi David,

    There is a similar application that use ObjectDataSource -
    http://demos.telerik.com/aspnet-ajax/carrental/dailyschedule.aspx

    You can add the drivers as resources to the appointment. If more than one driver can be assigned to a tour, then you need to Implement A Provider That Supports Multi-valued Resources.

    To display the resources in the appointment template, you can use the approach from the Resource Availability demo.


    Greetings,
    Peter
    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.

  4. David Tabatadze
    David Tabatadze avatar
    9 posts
    Member since:
    Apr 2010

    Posted 22 May 2011 Link to this post

    Hello.

    I have one question.

    I am using AdvancedEditTemplate, but it's not appearing when i'm enabling modal layout.

    Like this:

    <telerik:RadScheduler ID="TourScheduler" runat="server" DataSourceID="odsTourSheduler"
            DataKeyField="ID" DataStartField="StartDate" DataEndField="EndDate"
            DataSubjectField="Name" Height="600"
            DataDescriptionField="Description" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"
            AppointmentStyleMode="Default"
            AllowEdit="true" EnableDescriptionField="true" SelectedView="MonthView"
            StartEditingInAdvancedForm="true" >
      
               <AdvancedForm Modal="true" />
      
            <AdvancedEditTemplate>
                      my AdvancedEditTemplate content
            </AdvancedEditTemplate>
      
    </telerik:RadScheduler>

    If i turn Modal to false, it works, but when Modal is True is doesn't show me anything.

    Am i missing something?

    thx

  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 24 May 2011 Link to this post

    Hi David,

    Please, see this help topic -
    http://www.telerik.com/help/aspnet-ajax/scheduler-custom-modal-advanced-template.html


    Regards,
    Peter
    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.

Back to Top