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

2 posts, 0 answers
  1. Mark
    Mark avatar
    4 posts
    Member since:
    Jun 2010

    Posted 11 May 2011 Link to this post

    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
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 15 May 2011 Link to this post

    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.

Back to Top