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

Page's parent/container a RadWindow or not?

2 Answers 8 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bryan
Top achievements
Rank 1
Bryan asked on 21 Aug 2015, 04:45 AM

Is there a client-side test to determine whether a page is contained within a RadWindow or not?

Sometimes, pages can be navigated to directly from the browser's address bar, showing content that is originally designed to be inside a RadWindow.

 If this were to happen, I would like to perform a test that determines if the page is contained within a RadWindow or not so that I can then decide how do show the page.

 Can anyone provide ideas/samples for this?

2 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 24 Aug 2015, 01:57 PM
Hi,

Check if the following check will do the job for you?
$telerik.$(window.frameElement.parentNode).hasClass('rwWindowContent');


Regards,
Stanimir
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Stanimir
Telerik team
answered on 24 Aug 2015, 01:59 PM
Hi,

Just a little update of the script:
window.frameElement && $telerik.$(window.frameElement.parentNode).hasClass('rwWindowContent');



Regards,
Stanimir
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Window
Asked by
Bryan
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or