findPageViewByID not working in IE 10

3 posts, 0 answers
  1. Matt
    Matt avatar
    5 posts
    Member since:
    Aug 2013

    Posted 04 Oct 2013 Link to this post


    My site contains a chunk of javascript that I want to run only when a certain RadTab is selected by the user (i.e. MultiPageView).
    This code has to be javascript as it changes images on the page without posting back.
    I want this code to only run on a certain Tab to reduce overhead* on the other tabs.
    *The code changes up to 15 images dynamically.

    My approach to this is as follows:

    var multiPage = $find("<%=RadMultiPageAdmin.ClientID %>");
    var newPage = multiPage.findPageViewByID("New");

        if (newPage.get_selected())
            //run javascript

    (The MultiPage is called RadTabStripAdmin, the tab I want is called New)

    This solution works perfectly in Chrome, FireFox, Opera etc, but not in IE (only IE 10 tested)
    When testing the site locally on an ASP.NET dev server, this code does work in IE10.

    When the site is published and deployed to the IIS server, the following error is produced (Only in IE 10):
    SCRIPT5007: Unable to get property 'findPageViewByID' of undefined or null reference 

    Please help!


  2. Matt
    Matt avatar
    5 posts
    Member since:
    Aug 2013

    Posted 07 Oct 2013 Link to this post


    To Telerik and anyone else who has similar problems:

    If the site behaves differently on a development server and the deployment server, it is because Microsoft introduced different rendering methods for local and internet servers.. for reasons I cannot comprehend.

    Because of this; Telerik javascript functions (such as get_selected mentioned here) do not work.

    To fix the probem, add this to the <head> section of your ASPX file:
    <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>

    This changes the compliancy mode of IE.

    More information here:

  3. Nencho
    Nencho avatar
    1661 posts

    Posted 09 Oct 2013 Link to this post

    Hello Matt,

    Thank you for sharing your solution with the community.

    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 the blog feed now.
Back to Top