HI,
I am using VS2008/C#/XP proffesional win application with MS Access DB.
I not sure what version i want to download to work perfectly(i have downloaded Telerik DLLs from Telerik site "RadControls for WinForms Q3 2008 SP2.zip".
I am getting lots of problem in RadScheduler control for winform integration. I have downloaded some samply aplication in Telerik site but its giving error.
Can anybody please guide me what is the problem in below code.
Error List:
- I am not able to get the “Resource” propertly in appointmentMappingInfo
- If I comment below 5 lines means its working but recurrence part will not work
//appointmentMappingInfo.Resources = "Appointments_AppointmentsResources";
//appointmentMappingInfo.ResourceId = "ResourceID";
//appointmentMappingInfo.RecurrenceRule = "RecurrenceRule";
ResourceMappingInfo resourceMappingInfo = new ResourceMappingInfo();
//resourceMappingInfo.Id = "ID";
//resourceMappingInfo.Name = "ResourceName";
I am getting error like “Object reference not set to an instance of an object”.
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.Resource = "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;
}
Can anybody please provide the code for saving scheduler appointment,resource and recurrence in MS Access DB?
Below code I have used but not able to get or save the recurrence details.
CODE
private void btnSave_Click(object sender, EventArgs e)
{
AppointmentsTableAdapter appointmentsAdapter = new AppointmentsTableAdapter();
appointmentsAdapter.Update(this.schedulerDataSet.Appointments);
AppointmentsResourcesTableAdapter appointmentsResourcesAdapter = new AppointmentsResourcesTableAdapter();
appointmentsResourcesAdapter.Update(this.schedulerDataSet.AppointmentsResources);
}
Yesterday I got email from Telerik team and they are telling like I need to download new version of sample application. So Can Anybody please send me the sample working(Appointment,recurrence) application to me? Or Tell me the URL where exactly I want to go for download that samply working application
Awaiting your reaply….
Advance thanks
Mahesh