Asp .net RadDatePicker in CompositeControl

2 posts, 0 answers
  1. Marek
    Marek avatar
    1 posts
    Member since:
    Dec 2012

    Posted 07 Dec 2012 Link to this post

    I have problem with RadDatePicker inside composite control. My composite control looks like this:
            protected override void CreateChildControls()
                this.Calendar = new RadDatePicker
                  ID = "Calendar",
                    Width = new Unit(100, UnitType.Percentage)


            protected override void Render(HtmlTextWriter writer)
    When I launch the project, the callendar appers on the page. The problem is that firebug logs error, and after click on the calendar's button nothing happens. The error:

    TypeError: a is undefined
    ...alizer._serverTypeFieldName&&f!==0){d[f++]=d[0];d[0]=e}else d[f++]=e}if(i)d.sort...

  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 13 Dec 2012 Link to this post


    Could you please try to add another script control in your custom composite control and verify if the same error appears? Also please try to firstly add the RadDatePicker control to the control collection and then set its properties.

    Kind regards,
    Maria Ilieva
    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.
Back to Top