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

Converted from VB to C# getting js error on if(j[0].checked){h.show();

1 Answer 39 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 11 May 2011, 06:48 PM
Hi,

We converted a project containing a RadScheduler from VB to C# and now we're getting a javascript error that indicates that the Recurrence checkbox is null.  The error is occurring on line 12734 of the javascript file.  The line where it breaks is
if(j[0].checked){h.show();  j[0] is null or not an object.  I can find no functional difference between the two versions.
Here is the code from RecurrenceEditor.js:
    _initializeRecurrenceCheckbox: function()
    {
        var id = this._baseId;
        var recurrencePanel = $($get(id + "_RecurrencePanel"));
        var recurrentAppointment = $($get(id + "_RecurrentAppointment"));
        if (recurrentAppointment[0].checked)
        {
            recurrencePanel.show();
        }
 If you have any insight on what could cause this error we would greatly appreciate it. Thank you

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 15 May 2011, 06:52 PM
Hi Mark,



Unfortunately I can not tell you what may cause this error because I have too little information about your project.



Could you please open a new Support ticket and attach your code so I can inspect it and help you? If the project is one of our demos - could you please send me the link for it and I will provide you the full C# version?



All the best,

Veronica Milcheva

the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Scheduler
Asked by
Mark
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Share this question
or