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

Javascript Error in internal code!!

10 Answers 171 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Archan
Top achievements
Rank 1
Archan asked on 24 Sep 2008, 02:09 PM
Hi

I am getting error in this internal code block of telerik Rad Schedular while loading the Schedular for the first time in Month View .

This error is coming in mouseover for the appointments.....


var

_168=this.getAppointmentDomElement(e.eventMapTarget);

var

_169=this.getAppointmentFromDomElement(_168);

var

_16a=(_169.get_allowDelete()!=null)?_169.get_allowDelete():this.get_allowDelete();

In the above code _169 is coming as Null..

Please help me out ..

For 2 days I am trying to overcome this but not able to do it..

Thanks
Archan

10 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 24 Sep 2008, 02:35 PM
Hello Archan,

This error looks quite strange and we haven't encountered it before while testing RadScheduler.

Please open a support ticket and send us a small page or a project where the error can be observed. We will investigate and will try to find what is causing it. Hopefully, we will also provide you with a solution or a workaround.

Greetings,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Archan
Top achievements
Rank 1
answered on 25 Sep 2008, 07:21 AM
Hi

when I am navigating from week view to Month View again, the error goes.
Only for the first load in the month view the error comes ...

Any idea..

Thanks
Archan
0
Orry
Top achievements
Rank 1
answered on 23 Oct 2008, 07:13 PM
Hi,

We are encountering the same error. It occurs whenever a user  mouse overs an appointment.

Hopefully this issue will be resolved quickly.
0
Simon
Telerik team
answered on 24 Oct 2008, 06:58 AM
Hi there,

Please upgrade to the latest version of Telerik.Web.UI available in your Client.net accounts and let us know if the issue still persists.

Regards,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Orry
Top achievements
Rank 1
answered on 24 Oct 2008, 02:56 PM
Hi,

The error started appearing only after we upgraded to the latest version. I was looking for a late property change and found that the code in the scheduler
data bound handler for setting the amount of appointment (code from your samples) was causing it. A call to rebind eliminated the error, but i really don't like having to call rebind in the data bound handler.

Thanks.
0
T. Tsonev
Telerik team
answered on 26 Oct 2008, 03:29 PM
Hi Orry,

Can you, please, tell us exactly which sample are you referring to, so we can investigate the issue further. Thank you.

All the best,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Orry
Top achievements
Rank 1
answered on 27 Oct 2008, 02:05 PM
Hi,

I was referring to the sample for displaying all appointments in a cell when the scheduler is on month view (without the 'show more' link).

Although i can't seem to find that particular sample today the code was keeping track of appointment count for each month and at the data bound event apply that count to the VisibleAppointmentsPerDay property.

I hope that helps,

Orry.
0
T. Tsonev
Telerik team
answered on 01 Nov 2008, 04:16 PM
Hello Orry,

Thank you for getting back to us.I have found the KB article you are talking about. I will take care to fix and update the code.

Best wishes,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Matt
Top achievements
Rank 2
answered on 03 Apr 2009, 01:41 AM
Any updates on this fix.  I noticed this recently with the Q1 2009 version.  Here's the line of code from the Telerik.Web.UI.WebResource.axd file:
var _2de=(_2dd.get_allowDelete()!=null)?_2dd.get_allowDelete():this.get_allowDelete();

0
T. Tsonev
Telerik team
answered on 06 Apr 2009, 08:48 AM
Hi Matt,

Do you get this error after you apply the code from this KB article?
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-show-all-appointments-in-month-view.aspx

If so, I'm glad to let you know that you don't need to write custom code. RadScheduler now supports this mode internally and we'll be obsoleting the KB article soon. In short, you have to set VisibleAppointmentsPerDay to the largest number of appointments you want to show and enable "adaptive" row height. This will allow each row to grow in height independently of the others:

<telerik:RadScheduler: MonthView-VisibleAppointmentsPerDay="30"MonthView-AdaptiveRowHeight="true" ... />

If you're getting the error in another scenario we'll need to see some sample code before we can help.

Greetings,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Archan
Top achievements
Rank 1
Answers by
Simon
Telerik team
Archan
Top achievements
Rank 1
Orry
Top achievements
Rank 1
T. Tsonev
Telerik team
Matt
Top achievements
Rank 2
Share this question
or