Radscheduler - Appointments return null...

7 posts, 0 answers
  1. Andreas
    Andreas avatar
    4 posts
    Member since:
    Jan 2012

    Posted 27 Jan 2012 Link to this post

    Hi,
    I'm using ASP.NET AJAX with a RadCalender and a Rad Scheduler, when i'm logging in to my "site"  the page is loading and there will be an error: GetAppointments is returning null. The Error message says: Microsoft JScript: Can't get the value for the "Appointments": object is null or undefiend.

    var i = g.Appointments || g;


    Its the only the days where there is no appointment when this is happening otherwise its running ok.

    Any suggestions?


    Regards
    Andreas

  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 30 Jan 2012 Link to this post

    Hi,

    Could you provide us with the JavaScript code you have on the page? Also, what is the version of our controls that you are using?

    Regards,
    Ivana
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. Andreas
    Andreas avatar
    4 posts
    Member since:
    Jan 2012

    Posted 30 Jan 2012 Link to this post

    Updated..

    I'm using your example code in Radscheduler/First Look with a RadCalender, Radscheduler and a WebService. In the webservice we have a method called GetAppointments() who get information from a database. While we have logged in to our site we'll see the appointments in the week and months view but when we click on the dayview and there isn't any appointments on that day the error occur.

    Regards
    Andreas Ejnersten
  4. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 01 Feb 2012 Link to this post

    Hello Andreas,

    Could you reproduce the same behavior on our online demos? For more information about the Web Service binding of RadScheduler, you could refer to our online documentation: [http://www.telerik.com/help/aspnet-ajax/scheduler-webservicebinding.html].

    You could also isolate the issue in a sample project and send it to us via a support ticket. This way we will be able to examine the problem locally and provide you with a solution for it.

    Regards,
    Ivana
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  5. Andreas
    Andreas avatar
    4 posts
    Member since:
    Jan 2012

    Posted 13 Feb 2012 Link to this post

    Sorry.. But i fixed it after i while :-)
  6. Karl
    Karl avatar
    2 posts
    Member since:
    May 2013

    Posted 21 May 2013 Link to this post

    Hello

    I have the same error too.

    What's your solution ?

    Thanks
  7. Karl
    Karl avatar
    2 posts
    Member since:
    May 2013

    Posted 22 May 2013 Link to this post

    I found the cause of the error : it's the RadCompression HttpModule.

    So I add a lne in web.config to remove compression on my page :
        <excludeHandlers>
                    <!--This will match the handlers of all pages which reside in the MyFolder sub-folder of the web site-->
                    <add handlerPath="Folder/" matchExact="false"/>
                </excludeHandlers>
            </radCompression>
Back to Top