RadScheduler GroupBy Issue

6 posts, 0 answers
  1. javier
    javier avatar
    48 posts
    Member since:
    Aug 2012

    Posted 11 Jun 2012 Link to this post

    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.

  2. javier
    javier avatar
    48 posts
    Member since:
    Aug 2012

    Posted 14 Jun 2012 Link to this post

    any help?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. javier
    javier avatar
    48 posts
    Member since:
    Aug 2012

    Posted 14 Jun 2012 Link to this post

    Hi there,
    Just to comment that after 4 working days I'm still having the same issue.
    Thank you,
  5. javier
    javier avatar
    48 posts
    Member since:
    Aug 2012

    Posted 18 Jun 2012 Link to this post

    I finally stop using the RadSheduler and implemented a control by my own.
    Thanks,
  6. Pierre
    Pierre avatar
    7 posts
    Member since:
    Jun 2010

    Posted 08 Oct 2013 Link to this post

    Hi Javier ,


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


    thank you in advance
  7. javier
    javier avatar
    48 posts
    Member since:
    Aug 2012

    Posted 16 Oct 2013 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017