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

First steps

9 Answers 164 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
kriskramer
Top achievements
Rank 1
kriskramer asked on 11 Oct 2007, 03:35 PM
Ok, I'm sure I'm missing some really easy things here, but I'm having trouble getting the RadScheduler to work for me and I need some help on steps all the way through the process. I just started looking into this control this morning, so I'm not quite as caught up on it as I should be, but I'm hoping there are others like me, and that they can use this thread to help them along as well.

I created a test site, with a class called Event that has a Guid Id, string title and desc, and datetime StartDate and EndDate properties (this is C# by the way). I created a collection class called Events which is just a List<Event> populated with test data.

Now, I dropped the RadScheduler control and the RadScriptManager control into my default.aspx page, and set the following properties declaratively:

ID="RadScheduler1"
Skin="Mac"
SelectedDate="2007-10-11"
DataKeyField="ID"
DataSubjectField="Description"
DataTitleField="Title"
DataStartField="StartDate"
DataEndField="EndDate"
ViewType="DayView"

In the Page_Load event of my .cs page, I have the following line:

RadScheduler1.DataSource = events;

Now, I had assumed that I'd set up the bare minimum to just get things up and running, but apparently that's not the case. When I run the app, I get javascript errors that say 'Type not defined', 'Sys not defined', 'Telerik not defined', and that makes me think I'm missing something important because the client side telerik objects aren't being recognized. Also, the scheduler itself is collapsed, showing the top and bottom, but nothing between (i.e. it's in day mode, but not showing any hours rows).

My first question concerns the JS errors. Am I missing a reference somewhere?

Second, can someone give me a quick rundown or a link that explains resources more fully?

Third, same as above only with recurrence. I get what recurrence is, I'm just not sure what I need to do make sure I capture the correct info in my objects, and then apply that to the scheduler. For example, is there an existing enum for the different RecurrenceRules?

Thanks in advance for any help on this.

9 Answers, 1 is accepted

Sort by
0
Shaun Peet
Top achievements
Rank 2
answered on 11 Oct 2007, 05:03 PM
Your javascript errors sound like you don't have the necessary settings in the web.config file for ASP.NET AJAX to work properly - and there's alot of settings.  Did you create your website as an ASP.NET website or as an ASP.NET AJAX website?  There will be big differences in the web.config.
0
kriskramer
Top achievements
Rank 1
answered on 11 Oct 2007, 05:18 PM
Lol, yeah, that was it. I didn't even think of that when creating the test site. Thanks. :)
0
kriskramer
Top achievements
Rank 1
answered on 11 Oct 2007, 09:15 PM
Next question, in addition to the resource and recurrence questions above...

I created a click event handler for my scheduler as follows:

protected void RadScheduler1_AppointmentClick(object sender, Telerik.Web.UI.SchedulerEventArgs e)
{
     some code here...
}

However, when I set a breakpoint inside the method, e.Appointment is coming back as null. Any ideas why, or what I need to do here? I have the method set declaratively in the .aspx page, i.e. 

OnAppointmentClick="RadScheduler1_AppointmentClick"

Also, clicking the X button on the appt does not fire the _AppointmentDelete event handler. What am I missing there?

0
Peter
Telerik team
answered on 12 Oct 2007, 08:45 AM

Hi Kris,

This is strange. Do you have a simple project which demonstrates the issue? If so, please, open a support ticket and send it to us. We will examine it locally and probably find the cause of the problem.



Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jeffrey
Top achievements
Rank 1
answered on 28 Nov 2007, 04:37 PM
Is there anywhere to download a project of just the scheduler? I tried making a new ASP .NEXT AJAX project and creating it from that but I am having a lot of difficulties.

I can modify and edit the full prometheus fine, but I do not need any of the other controls.

If anyone has just a scheduler project available, I would greatly appreciate it.

Thank you,

Jeff
0
Peter
Telerik team
answered on 28 Nov 2007, 05:38 PM
Hello Jeffrey,

We can prepare a stand-alone example of RadScheduler if you specify which online demo you need.


Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jeffrey
Top achievements
Rank 1
answered on 28 Nov 2007, 05:41 PM

Hello,

Thank you for your quick reply. Right now I am working with the resources example the most (/Examples/Resources/DefaultVB.aspx) because of the individual color settings and legend depending on the person. If not, the default radscheduler would be fine.

I am using VB VS 2005.  Thank you kindly

0
Jeffrey
Top achievements
Rank 1
answered on 28 Nov 2007, 06:00 PM
0
Peter
Telerik team
answered on 29 Nov 2007, 03:50 PM
Hi Jeffrey,

As per your request, please, find attached the Resource example. Let us know if you have any questions.


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
kriskramer
Top achievements
Rank 1
Answers by
Shaun Peet
Top achievements
Rank 2
kriskramer
Top achievements
Rank 1
Peter
Telerik team
Jeffrey
Top achievements
Rank 1
Share this question
or