Catching Close Event Server Side

3 posts, 0 answers
  1. Mirek
    Mirek avatar
    1 posts
    Member since:
    Mar 2016

    Posted 23 Jul 2016 Link to this post

    I'm trying to have persistent notifications, in other words notifications that show until the user clicks the x (close) button on the notification.  Is there a recommended way to capture this event server side along with the value from the notification being clicked so that I can record these notifications as being seen?


    Seems similar to what this person was asking:


    I see the mention of using the menu to add actions, this isn't exactly what I need... but even there I can find no example of sending anything server side with these actions, only client side.


    Thanks in advance,



  2. Marin Bratanov
    Marin Bratanov avatar
    3907 posts

    Posted 25 Jul 2016 Link to this post

    Hi Mirek,

    There is no built-in server event for the user interaction. What I can suggest is that you:

    1. use the OnClientHiding event to know whether the user clicked the [x] button or the control timer ran out and it hid:
    2. initiate a request to the server and pass the needed information (e.g., a flag that the user dismissed the control). The following blog post offers ideas: Also, the ajaxReques(argument) method RadAjax controls offers may also be interesting:
    3. consider setting AutoCloseDelay to 0 to prevent the control from hiding automatically:

    Or, you can consider using a RadAlert dialog which is modal:,-confirm,-prompt-dialogs/radalert-dialog. You can use its callback function to initiate a request.


    Marin Bratanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. Mirek
    Mirek avatar
    2 posts
    Member since:
    Sep 2015

    Posted 26 Jul 2016 in reply to Marin Bratanov Link to this post

    Thanks Martin,

    I'm looking at these... seems like maybe option #2 would work although I'm not understanding it completely at this point.  I already have the autoclosedelay set to 0 all I am lacking is being able to mark the messages as closed.  More or less I need the message to come up on any/all open pages and stay(working) until they close it(not working). 


    It may be that like you say I need to use another control for this all together.


    Thanks again,


Back to Top