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

RadScheduler control for winform - Integration problem

1 Answer 152 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 19 May 2009, 01:50 PM

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

1 Answer, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 21 May 2009, 04:36 PM
Hello Mahesh,

Please refer to the answer in the following forum post:
http://www.telerik.com/community/forums/winforms/scheduler/scheduler-recurrence-resources-problem.aspx

Regards,
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