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

    Hi

    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
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 24 Sep 2014 Link to this post

    Hi,

    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);

    Regards,
    Dimitar Terziev
    Telerik
     

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top