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

Nested list in AppointmentTemplate

4 Answers 73 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David Tabatadze
Top achievements
Rank 1
David Tabatadze asked on 16 May 2011, 10:37 AM

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.

4 Answers, 1 is accepted

Sort by
0
David Tabatadze
Top achievements
Rank 1
answered on 18 May 2011, 12:56 PM
Can someone response me please?
0
Peter
Telerik team
answered on 20 May 2011, 09:03 AM
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.

0
David Tabatadze
Top achievements
Rank 1
answered on 22 May 2011, 12:21 PM

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

0
Peter
Telerik team
answered on 24 May 2011, 03:25 PM
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.

Tags
Scheduler
Asked by
David Tabatadze
Top achievements
Rank 1
Answers by
David Tabatadze
Top achievements
Rank 1
Peter
Telerik team
Share this question
or