Javascript doesn't work on Ajax

2 posts, 0 answers
  1. Velkumar
    Velkumar avatar
    85 posts
    Member since:
    Apr 2011

    Posted 03 Apr 2012 Link to this post


            In my aspx page I have a usercontrol. In this UserControl I have a PanelBar with four  panel items. Each panel items contains different usercontrol ( ASCX ).  In the panel item click I have loaded the usercontrol dynamically in the corresponding panel item. In my page load I have expanded the first panel item as default.  When  i click the second panel item the usercontrol for this panel item  will be loaded but the script inside this usercontrol is not working. Please give any solution for this problem.
  2. Eyup
    Eyup avatar
    4081 posts

    Posted 05 Apr 2012 Link to this post

    Hello Velkumar,

    If you are using ajax, try to disable it and see if the problem persists. Please make sure that you are registering your script correctly.
     Can you confirm that you are following the described steps in this article and the corresponding demo: An alternate approach would be to  enable your script debugging and see if any javascript errors are interfering.
    You can also try executing custom javascript code after ajax update described in the following topic:

    I have tried a scenario resembling yours with a little different approach and everything is fine on my side. Attached you will find the aforementioned sample.

    If the problem remains please open a support ticket and send us the full markup of the page as well as the related code behind. Thus we will be able to further research on the problem and do our best to provide a proper solution.



    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