Find elements inside RadPageView loaded with URL

2 posts, 0 answers
  1. Glen
    Glen avatar
    2 posts
    Member since:
    Apr 2011

    Posted 19 Sep 2014 Link to this post


    I have a RadTab and RadMultiPageView. I am adding New Tab and New Page View from Java Script and loading PageView with an URL.

    Now I want to find an element in the loaded PageView with URL.

    It is loading content in iFrame and I could not get the elements in it as there is no ID with the iFrame and cannot find that.

    Please help.
  2. Dimitar Terziev
    Dimitar Terziev avatar
    1268 posts

    Posted 24 Sep 2014 Link to this post


    The following snippet could be used to reference the iframe element of the first page view in the RadMultiPage's PageViews collection:
    var multiPage = $find("RadMultiPageId");
    var pageViewElement = multiPage.get_pageViews().getPageView(0).get_element();
    var iframeElement = $telerik.$(pageViewElement).find("iframe").get(0);

    Dimitar Terziev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top