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

Javascript not rendered on postback

1 Answer 98 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Gustavo
Top achievements
Rank 1
Gustavo asked on 13 Sep 2011, 01:56 PM

Hi ,

          We are using the Raddock control in the application for the dashboards and facing the following problem:

          Scenario –

We have 2 controls placed in a Raddock object say A and B and some JavaScript code is written in B and a .js file is called. Javscript in control is rendered properly, but the file code is executed only at page load and not on Postback.


          We are with a sample demo but not able to attach it. '.rar' or'.zip' format is not supported in attachment.

           Telerik version used - 2010.3.1221.20

             Looking forward to your response.


Regards,
Grant

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 16 Sep 2011, 09:04 AM
Hello Grant,

Please keep in mind that the scripts residing in a user control should be evaluated if you are loading dynamically a RadDock, containing that user control. The telerik static client library provides a method evalScripts that evaluates the scripts, placed in a particular HTML container ($telerik.evalScripts(panel)). I have attached a sample project, implementing the approach, suggested above. You can refer to it for your further development.

Note that at the current state of affairs your exact setup is not entirely clear. If the scenario, recreated by the attached project, doesn't match your case, please try modifying it accordingly. In case you aren't able to do so, please prepare and send a sample, runnable project that will allow us to inspect the problem locally and provide a solution for it.

Best wishes,
Slav
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
Dock
Asked by
Gustavo
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or