This is a migrated thread and some comments may be shown as answers.

Find elements inside RadPageView loaded with URL

1 Answer 93 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Glen
Top achievements
Rank 1
Glen asked on 19 Sep 2014, 07:43 PM
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.

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 24 Sep 2014, 06:42 AM
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.

 
Tags
TabStrip
Asked by
Glen
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or