Detecting ASP.NET Page In RadWindow

2.2k Views Asked by At

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.

2

There are 2 best solutions below

2
andryuha On BEST ANSWER

Try to use Firefox's Firebug's Net tab or Fiddler to review the http requests being made when you open a page in the RadWindow.

Just monitor requests on this RadWindow demo

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

Telerik passes rwndrnd to the page that's being opened in the RadWindow

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/editformcs.aspx?EmployeeID=1&rwndrnd=0.8749773452267927

If that querystring is present, that could serve you as an indicator of it being opened in RadWindow.

Hope this helps. From past experience working with telerik's stuff, it was an exercise in finding and using hacks like this all the time to get anything done.

1
Antonio Bakula On