This is a migrated thread and some comments may be shown as answers.
Detect whether a page is opened in a RadWindow or a normal browser window
1 Answer 24 Views
This is a migrated thread and some comments may be shown as answers.
dingjing
Top achievements
Rank 2
dingjing asked on 08 Jan 2009, 06:50 PM
I have a page that can be opened in either a RadWindow or a normal browser window. Is there a way to tell from within the page at server-side which window is opening the page? Or do I have to inject something from the calling page, like a URL parameter "OpenedInRadWindow=True/False"?

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 09 Jan 2009, 01:48 PM
Hello dingjing,

I think using the query string will be the easiest way. There is a way to check if a page is loaded in RadWindow or not by using the GetRadWindow() function (if the returned object is not null, then the page is in RadWindow), but this check is on the client only. To have it on the server, you will need to post it somehow - for example with __doPostback() or Ajax request.



Greetings,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Asked by
dingjing
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Share this question
or