Search code examples
.netasp.nettelerikradwindowtelerik-window

Detecting ASP.NET Page In RadWindow


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.


Solution

  • 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.