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

RadScheduler GroupBy Issue

5 Answers 137 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
javier
Top achievements
Rank 1
javier asked on 11 Jun 2012, 12:36 PM

Hello,

I have a Server binded Scheduler with a Timeline View set to group by but it does not work.

My ASPX code:
    <telerik:RadScheduler runat="server" ID="RadScheduler1" EnableAdvancedForm="false" AllowDelete="false"
        AllowEdit="false" AllowInsert="false" CssClass="test" ShowFooter="false"          
        SelectedView="TimelineView" Height="500"
        onappointmentdatabound="RadScheduler1_AppointmentDataBound"
        OnResourcesPopulating="RadScheduler1_ResourcesPopulating"  >

  <WebServiceSettings  Path="~/Controllers/SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" />
        <TimelineView GroupingDirection="Vertical" NumberOfSlots="31"
                      ColumnHeaderDateFormat="dd" GroupBy="Car"  />                                                 
        <AdvancedForm Modal="false" />       
        <MultiDayView UserSelectable="false" />       
        <MonthView UserSelectable="true" />
        <WeekView UserSelectable="true" />
        <DayView  UserSelectable="true"  />
   
My code behind code:
        protected void Page_Load(object sender, EventArgs e)
        {                       
            List<Model> list = facade.List();
            foreach (Model obj in list)
            {
                RadScheduler1.Resources.Add(new Resource("Car", 
                    obj.Id, obj.BuyDate.ToString("dd/MM/yyyy")));
            }
        }

in the Web Service code I have implemented the GetAppointments and the GetResources methods. The GetAppointments returns a list of AppointmentData  objects which are created in this way:
                    AppointmentData appointment = new AppointmentData();                   
                    appointment.ID = obj.ID;
                    ResourceData rd= new ResourceData();
                    rd.Key=appointment.ID;
                    appointment.Resources.Add(rd);
                    appointment.Subject = obj.ID;
                    appointment.Start = obj.Visit;
                    appointment.End = appointment.Start.AddHours(8);
                    appointments.Add(appointment);

What I'm getting with this code is a Scheduler with the added resources in the first column but it does not show the appointments.
Please hellp me with this control. Thanks.

5 Answers, 1 is accepted

Sort by
0
javier
Top achievements
Rank 1
answered on 14 Jun 2012, 08:16 AM
any help?
0
javier
Top achievements
Rank 1
answered on 14 Jun 2012, 04:26 PM
Hi there,
Just to comment that after 4 working days I'm still having the same issue.
Thank you,
0
javier
Top achievements
Rank 1
answered on 18 Jun 2012, 03:46 PM
I finally stop using the RadSheduler and implemented a control by my own.
Thanks,
0
Pierre
Top achievements
Rank 1
answered on 08 Oct 2013, 02:09 PM
Hi Javier ,


can you share your solution i have the same problem , i cant see my appointment


thank you in advance
0
javier
Top achievements
Rank 1
answered on 16 Oct 2013, 10:43 PM
Hi Pierre,

I just used a telerik grid and I manually added the control I needed to the columns using templates.
It's not that elegant but it did the job.

Thanks,

Javier Andres Caceres Alvis
jacace.wordpress.com
Tags
Scheduler
Asked by
javier
Top achievements
Rank 1
Answers by
javier
Top achievements
Rank 1
Pierre
Top achievements
Rank 1
Share this question
or