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