change the visiblity of radwindow

3 posts, 0 answers
  1. Sa'ed
    Sa'ed avatar
    1 posts
    Member since:
    Apr 2014

    Posted 29 Apr 2014 Link to this post

    how i can change the visibilty of radwindow on OnClientClose event
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Apr 2014 in reply to Sa'ed Link to this post

    Hi Sa'ed,

    Please try to set the SetVisible as true/false to change the visibility of RadWindow in OnClientClose event as follows.

    JavaScript:
    function ChangeVisibility(sender, args) {
        sender.SetVisible(true);
    }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Joana
    Admin
    Joana avatar
    70 posts

    Posted 02 May 2014 Link to this post

    Hi,

    If you do not cancel the OnClientBeforeClose event, the RadWindow will hide when it is closed, i.e., when the OnClientClose event fires, so further code should not be needed.

    If you want to toggle its server-side Visible property, you would need to initiate a (partial) postback to do so (because the page will need to travel to the server), but I do not see a reason why this would be needed. The cost of the postback would be higher than having a control at the ready whose scripts, stylesheets and client-side object are already loaded and cost nothing to maintain.


    Regards,

    Joana
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top