I have a control in a master page that I want to display only when the master page is not in a RadWindow; when in a RadWindow, it should be hidden. Is that possible to do, to detect when the page request is inside the RadWindow?
Thanks.
1 Answer, 1 is accepted
0
Georgi Tunev
Telerik team
answered on 08 Jun 2011, 12:38 PM
Hello Brian,
Such check can be done on the client only - there isn't a server-side method that would detect how the HTML is rendered - in the topmost page or in some container like IFRAME.
To detect on the client if a page is loaded in a RadWindow, you could use a slightly modified version of the GetRadWindow() function: