Rad script manager on master page

2 posts, 0 answers
  1. andrew
    andrew avatar
    2 posts
    Member since:
    Mar 2011

    Posted 15 Jul 2011 Link to this post

    Hi i have a Rad script manager on my master page but im having trouble using the client side api in pages that use the master page e.g. the $find('someid'); doesn't work and returns null.

    I think the problem is the script is present in the DOM but it is not finding the Rad controls on the page.

    Is there any way to use the script manager from the master page or should the script manager be placed on each page separately?

    Thanks Andrew
  2. Simon
    Simon avatar
    2281 posts

    Posted 18 Jul 2011 Link to this post

    Hi Andrew,

    The location of RadScriptManager does not dictate when the $find function will work. $find looks for client-side objects, which have been initialized. Depending on where you use it, you will get nulls or the client-side objects of the targeted controls.

    The most suitable place to use the function is in the pageLoad event handler, e.g.
    function pageLoad() {

    I hope this helps.

    All the best,
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. DevCraft R3 2016 release webinar banner
Back to Top