First steps

10 posts, 0 answers
  1. kriskramer
    kriskramer avatar
    29 posts
    Member since:
    Nov 2006

    Posted 11 Oct 2007 Link to this post

    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.

  2. Shaun Peet
    Shaun Peet avatar
    571 posts
    Member since:
    Aug 2004

    Posted 11 Oct 2007 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. kriskramer
    kriskramer avatar
    29 posts
    Member since:
    Nov 2006

    Posted 11 Oct 2007 Link to this post

    Lol, yeah, that was it. I didn't even think of that when creating the test site. Thanks. :)
  5. kriskramer
    kriskramer avatar
    29 posts
    Member since:
    Nov 2006

    Posted 11 Oct 2007 Link to this post

    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?

  6. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 12 Oct 2007 Link to this post


    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
  7. Jeffrey
    Jeffrey avatar
    7 posts
    Member since:
    Nov 2007

    Posted 28 Nov 2007 Link to this post

    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
  8. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 28 Nov 2007 Link to this post

    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
  9. Jeffrey
    Jeffrey avatar
    7 posts
    Member since:
    Nov 2007

    Posted 28 Nov 2007 Link to this post

    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

  10. Jeffrey
    Jeffrey avatar
    7 posts
    Member since:
    Nov 2007

    Posted 28 Nov 2007 Link to this post

  11. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 29 Nov 2007 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017