Page's parent/container a RadWindow or not?

3 posts, 0 answers
  1. Bryan
    Bryan avatar
    11 posts
    Member since:
    Sep 2012

    Posted 20 Aug 2015 Link to this post

    Is there a client-side test to determine whether a page is contained within a RadWindow or not?

    Sometimes, pages can be navigated to directly from the browser's address bar, showing content that is originally designed to be inside a RadWindow.

     If this were to happen, I would like to perform a test that determines if the page is contained within a RadWindow or not so that I can then decide how do show the page.

     Can anyone provide ideas/samples for this?

  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 24 Aug 2015 Link to this post

    Hi,

    Check if the following check will do the job for you?
    $telerik.$(window.frameElement.parentNode).hasClass('rwWindowContent');


    Regards,
    Stanimir
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 24 Aug 2015 Link to this post

    Hi,

    Just a little update of the script:
    window.frameElement && $telerik.$(window.frameElement.parentNode).hasClass('rwWindowContent');



    Regards,
    Stanimir
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top