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

Problem with Displaying the appointments in the scheduler

1 Answer 125 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
K N
Top achievements
Rank 1
K N asked on 16 May 2010, 08:25 PM
Hey you all, I'm having trouble displaying appointments in the scheduler !!! :( this is my code ...
I used the video and I'm doing exactly as its done in the video but mine doesn't work and I'm frustrated !!! :((
        private void BindToDataSet() 
        { 
            if (this.SDS == null) 
            { 
                this.SDS = new SchedulerDataDataSet(); 
                ClassesAdapter.Fill(SDS.Classes); 
                ClassroomsAdapter.Fill(SDS.Classrooms); 
                ClassClassroomAdapter.Fill(SDS.ClassClassroom); 
            } 
            SchedulerBindingDataSource datasourse = new SchedulerBindingDataSource(); 
            AppointmentMappingInfo appointmentMappingInfo = new AppointmentMappingInfo(); 
            appointmentMappingInfo.Start = "StartOfClass"
            appointmentMappingInfo.End = "EndOfClass"
            appointmentMappingInfo.Summary = "ClassName"
            appointmentMappingInfo.Description = "Description"
            appointmentMappingInfo.MasterEventId = "MasterEventID"
            appointmentMappingInfo.Location = "Location"
            appointmentMappingInfo.BackgroundId = "BackgroundID"
            appointmentMappingInfo.RecurrenceRule = "RecurrenceRule"
            appointmentMappingInfo.Resources = "FK_ClassClassroom_Classes"
            appointmentMappingInfo.ResourceId = "ClassroomID"
            datasourse.EventProvider.Mapping = appointmentMappingInfo
            datasourse.EventProvider.DataSource = SDS.Classes; 
 
            // create and assign resource mapping 
            ResourceMappingInfo resourceMappingInfo = new ResourceMappingInfo(); 
            resourceMappingInfo.Id = "ClassroomID"
            resourceMappingInfo.Name = "ClassroomName"
            datasourse.ResourceProvider.Mapping = resourceMappingInfo
            datasourse.ResourceProvider.DataSource = SDS.Classrooms; 
 
            radScheduler1.DataSource = datasourse
 
            radScheduler1.GetDayView().RulerStartScale = 8
            radScheduler1.FocusedDate = DateTime.Today; 
            radScheduler1.GetDayView().RulerEndScale = 22
            radScheduler1.GetDayView().ShowRuler = true
            radScheduler1.GetDayView().DayCount = 1
            radScheduler1.GroupType = GroupType.Resource; 
            radScheduler1.ActiveView.ResourcesPerView = 5
 
        } 



1 Answer, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 18 May 2010, 10:15 PM
Hi K N,

Thank you for writing.

Your code looks fine. I see tha you have another forum post on the topic, so let's continue the conversation there.

A bit off topic, please ask the person who has purchased our controls in your company to add you as a License Developer to the purchase. This will give you full access to the products your company has purchased, to our downloads section, and to our support ticketing system. Additionally, all your questions will be reviewed according to the license you have. More information on License Developers you can find here: www.telerik.com/account/faqs.aspx.

Greetings,
Dobry Zranchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler and Reminder
Asked by
K N
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Share this question
or