开发者

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.


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.


Here is the way, but only on client

http://www.telerik.com/community/forums/aspnet-ajax/window/best-way-to-detect-page-is-in-a-radwindow.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜