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

Javascript doesn't work on Ajax

1 Answer 60 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Velkumar
Top achievements
Rank 2
Velkumar asked on 03 Apr 2012, 01:34 PM
Hi

        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.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 05 Apr 2012, 11:09 AM
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.

Regards,

Eyup

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.
Tags
Ajax
Asked by
Velkumar
Top achievements
Rank 2
Answers by
Eyup
Telerik team
Share this question
or