Javascript not rendered on postback

2 posts, 0 answers
  1. Gustavo
    Gustavo avatar
    1 posts
    Member since:
    Dec 2008

    Posted 13 Sep 2011 Link to this post

    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.

  2. Slav
    Slav avatar
    1359 posts

    Posted 16 Sep 2011 Link to this post

    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,
    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