Hide on serverside

2 posts, 0 answers
  1. FEST
    FEST avatar
    31 posts
    Member since:
    Jul 2011

    Posted 17 Oct 2011 Link to this post

    Hi Forum!

    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.
  2. Marin Bratanov
    Marin Bratanov avatar
    4441 posts

    Posted 19 Oct 2011 Link to this post


    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,
    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
Back to Top