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

Calendar randomly breaks

10 Answers 150 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 24 Jun 2008, 02:13 PM
Hi all,

I have a calendar control on my page which when clicked updates another control. Sometimes when I click on a number of different dates it suddenly stops updating. I've used firebug and have noticed this error when it decides not to work.
--------------------------------------------------
[Exception... "'Sys.ParameterCountException: Sys.ParameterCountException: Parameter count mismatch.' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: http://localhost:2746/ScriptResource.axd?d=_lUa4n39bb-ijpkuJgIb02dLY7OBI5co3f5bpUItCCR61j8_Lrs8viB4JBegquumXxvDkITdu3fPhW2z7apaI8gjYcY9JReCxamJIF12_UM1&t=633338379110710201 :: Sys$Net$XMLHttpExecutor$abort :: line 5344" data: no]
_getAbbrMonthIndex()("")ScriptRe...160000000 (line 761)
BoxSide()ScriptRe...860000000 (line 499)
this._upperAbbrMonths=this._toUpperArray...s.dateTimeFormat.AbbreviatedMonthNames);
---------------------------------------------------------------------
I'm not sure if that is any use but it looks to me like there is a problem when the calendar tries to do something with the month.

What are your thoughts on this?

Thanks
Jon

10 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 24 Jun 2008, 02:22 PM
Hello Jonathan,

Can you provide more details about your scenario? Pasting some of your code and markup might help us understand better what is causing the error.

Sincerely yours,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jonathan
Top achievements
Rank 1
answered on 24 Jun 2008, 02:24 PM
Hi Pavel

I have a lot of code so not sure what bit I should paste. The error seems to occur before the SelectionChanged event though. This is the markup for the calendar

<telerik:RadCalendar ID="Calendar" runat="server" TitleFormat="MMMM yyyy" AutoPostBack="true"
                    Width="100%" OnSelectionChanged="CalendarSelectionChanged" EnableMultiSelect="False">
                </telerik:RadCalendar>

I also have this AJAXManager code

<telerik:AjaxSetting AjaxControlID="Calendar" EventName="SelectionChanged">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Scheduler" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="DiaryEventsMenu" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="Calendar" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>

Jon
0
Jonathan
Top achievements
Rank 1
answered on 24 Jun 2008, 02:37 PM
Hi Pavel

I've just added the standard .net 2 calendar control and added it to the radajaxmanager and I get the same error so I think the problem might be with the ajax manager

<telerik:AjaxSetting AjaxControlID="Calendar1" EventName="SelectionChanged">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Scheduler" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="DiaryEventsMenu" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="Calendar1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>

Jon
0
Jonathan
Top achievements
Rank 1
answered on 24 Jun 2008, 04:13 PM
This part also seems to cause quite a few problems.

if(Sys.CultureInfo.prototype._getAbbrMonthIndex){
755try{
756Sys.CultureInfo.prototype._getAbbrMonthIndex("");
758catch(ex){
759Sys.CultureInfo.prototype._getAbbrMonthIndex=function(_c6){
760if(!this._upperAbbrMonths){
761this._upperAbbrMonths=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames);
763return Array.indexOf(this._upperAbbrMonths,this._toUpper(_c6));
764};

line 761

Jon

0
Pavel
Telerik team
answered on 25 Jun 2008, 08:33 AM
Hi Jonathan,

The provided details are still insufficient for us to determine what is causing this undesired behavior. I think it will be best if you open a support ticket and attach to it a small runnable sample that reproduces the error. This will allow us to debug it locally and advise you accordingly.

Best wishes,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jonathan
Top achievements
Rank 1
answered on 25 Jun 2008, 09:09 AM
Hi Pavel

I've opened a support ticket, 146238

Thanks
Jon
0
Pavel
Telerik team
answered on 26 Jun 2008, 11:26 AM
Hello Jonathan,

I have replied to you in the support ticket you have opened.

Greetings,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Val
Top achievements
Rank 1
answered on 18 Dec 2008, 01:41 AM
I have the same problem.

Is the solution posted anywhere?
0
Pavel
Telerik team
answered on 18 Dec 2008, 07:04 AM
Hello Val,

We were never able to reproduce the error which is shown in the initial post. In this scenario there was an issue involving RadToolTip which we were able to solve. Could you elaborate more on your specific case so we can help you resolve the issue?

Greetings,
Pavel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jafin
Top achievements
Rank 2
answered on 30 Jan 2009, 12:53 AM
Is this related to the MS AJAX bug?  http://www.telerik.com/community/forums/aspnet-ajax/ajax/sys-cultureinfo-prototype-getabbrmonthindex.aspx

Tags
Calendar
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Jonathan
Top achievements
Rank 1
Val
Top achievements
Rank 1
Jafin
Top achievements
Rank 2
Share this question
or