I would like know how can I hide a radnotification via server-side since there is no hide() and dispose() or visible=false have their problems in my solution. How can I call the method that radnotification closebutton calls withouth having the close button, doing with another button.
1 Answer, 1 is accepted
0
Marin Bratanov
Telerik team
answered on 19 Oct 2011, 09:06 AM
Hi,
You can use the RadNotification's Client-side API and call its hide() method via JavaScript. This is best done on the client - i.e. without a postback. If you need the logic in the code-behind you can inject the call to the JavaScript function from the code-behind as well. Please note that generally when a postback is performed the entire page is disposed and thus any notifications will be hidden, yet after the postback they will restore their settings, so if none has the VisibleOnPageLoad property set to true none will be displayed until it is time (which is defined via the ShowInterval property).
Kind regards,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now