Scheduler Recurrence/Resources Problem

2 posts, 0 answers
  1. Mahesh
    Mahesh avatar
    5 posts
    Member since:
    May 2009

    Posted 20 May 2009 Link to this post

    HI,
    Need Help :)

    I am doing the RADscheduler integration with one of my Win application using VS2008/C#.
    Below is my code for Bind the scheduler data.
    ***************************************************************************************************************************
    CODE:

     

    private void BindToDataSet()

     

    {

     

    if (this.schedulerDataSet == null)

     

    {

     

    this.schedulerDataSet = new SchedulerDataDataSet();

     

     

     

    AppointmentsTableAdapter appointmentsAdapter = new AppointmentsTableAdapter();

     

    appointmentsAdapter.Fill(

    this.schedulerDataSet.Appointments);

     

     

    ResourcesTableAdapter resourcesAdapter = new ResourcesTableAdapter();

     

    resourcesAdapter.Fill(

    this.schedulerDataSet.Resources);

     

     

     

    AppointmentsResourcesTableAdapter appointmentsResourcesAdapter = new AppointmentsResourcesTableAdapter();

     

    appointmentsResourcesAdapter.Fill(

    this.schedulerDataSet.AppointmentsResources);

     

    }

     

    SchedulerBindingDataSource dataSource = new SchedulerBindingDataSource();

     

     

     

     

     

    AppointmentMappingInfo appointmentMappingInfo = new AppointmentMappingInfo();

     

    appointmentMappingInfo.Start =

    "Start";

     

    appointmentMappingInfo.End =

    "End";

     

    appointmentMappingInfo.Summary =

    "Summary";

     

    appointmentMappingInfo.Description =

    "Description";

     

    appointmentMappingInfo.Location =

    "Location";

     

    appointmentMappingInfo.BackgroundId =

    "BackgroundID";

     

    appointmentMappingInfo.StatusId =

    "StatusID";

     

    appointmentMappingInfo.Resources =

    "Appointments_AppointmentsResources";

     

    appointmentMappingInfo.ResourceId =

    "ResourceID";

     

    appointmentMappingInfo.RecurrenceRule =

    "RecurrenceRule";

     

    dataSource.EventProvider.Mapping = appointmentMappingInfo;

    dataSource.EventProvider.DataSource =

    this.schedulerDataSet.Appointments;

     

     

    ResourceMappingInfo resourceMappingInfo = new ResourceMappingInfo();

     

    resourceMappingInfo.Id =

    "ID";

     

    resourceMappingInfo.Name =

    "ResourceName";

     

    dataSource.ResourceProvider.Mapping = resourceMappingInfo;

    dataSource.ResourceProvider.DataSource =

    this.schedulerDataSet.Resources;

     

     

    this.radSchedulerDemo.DataSource = dataSource;

     

    }

    **************************************************************************************************************
    In this above code, i am not able to get the "Resources" property in "appointmentMappingInfo" (appointmentMappingInfo.? not comming). But i can get all other properties except "Resources" property.

    I have declared the all namespace like
    **************************************************************************************************************

    using

    System;

     

    using

    System.Collections.Generic;

     

    using

    System.ComponentModel;

     

    using

    System.Drawing;

     

    using

    System.Data;

     

    using

    System.Text;

     

    using

    System.Windows.Forms;

     

    using

    Telerik.WinControls.UI;

     

    using

    Telerik.WinControls;

     

    using

    Telerik.WinControls.Enumerations;

     

    using

    RadSchedulerBinding.SchedulerDataDataSetTableAdapters;

     


    ********************************************************************************************
    Can anybody help me on this issue?
    Advance Thanks
    Mahesh

  2. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 21 May 2009 Link to this post

    Hello Mahesh,

    Support for binding to recurrence rules and resources information from the data source was added in the Q1 2009 version of RadScheduler for WinForms. It is completely normal that you do not have the Resources and RecurrenceRule properties of the AppointmentMappingInfo class if you are using an earlier version of RadControls for WinForms.
    So, please make sure that you are using at least the Q1 2009 version. We strongly recommend that you use the latest version of RadControls for WinForms.

    Sincerely yours,
    Jordan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top