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

Scheduler Recurrence/Resources Problem

1 Answer 176 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Mahesh
Top achievements
Rank 1
Mahesh asked on 20 May 2009, 09:12 AM
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

1 Answer, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 21 May 2009, 03:12 PM
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.
Tags
Scheduler and Reminder
Asked by
Mahesh
Top achievements
Rank 1
Answers by
Jordan
Telerik team
Share this question
or