This is a migrated thread and some comments may be shown as answers.

change the visiblity of radwindow

2 Answers 19 Views
Window
This is a migrated thread and some comments may be shown as answers.
Sa'ed
Top achievements
Rank 1
Sa'ed asked on 29 Apr 2014, 08:54 AM
how i can change the visibilty of radwindow on OnClientClose event

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 30 Apr 2014, 02:53 AM
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.
0
Joana
Telerik team
answered on 02 May 2014, 09:20 AM

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.

 
Tags
Window
Asked by
Sa'ed
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Joana
Telerik team
Share this question
or