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

Radscheduler - Appointments return null...

6 Answers 118 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 27 Jan 2012, 01:58 PM
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

6 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 30 Jan 2012, 02:08 PM
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
0
Andreas
Top achievements
Rank 1
answered on 30 Jan 2012, 02:48 PM
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
0
Ivana
Telerik team
answered on 01 Feb 2012, 03:38 PM
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
0
Andreas
Top achievements
Rank 1
answered on 13 Feb 2012, 04:13 PM
Sorry.. But i fixed it after i while :-)
0
Karl
Top achievements
Rank 1
answered on 21 May 2013, 01:56 PM
Hello

I have the same error too.

What's your solution ?

Thanks
0
Karl
Top achievements
Rank 1
answered on 22 May 2013, 07:48 AM
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>
Tags
Scheduler
Asked by
Andreas
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Andreas
Top achievements
Rank 1
Karl
Top achievements
Rank 1
Share this question
or