RadAlert back button cache problem

2 posts, 0 answers
  1. Michael VS
    Michael VS avatar
    14 posts
    Member since:
    Jul 2007

    Posted 22 Mar 2010 Link to this post


    I'm sure you have had this one before so if you could point me to something similar....

    I have a server side creation of a RadAlert window using the usual Sys.Application.remove_load and add_load procedure however the alert keeps popping up as it seems to be caching when the user hits the back button after it has been activated.  I have tried to put a onclick event on a button to clear the function using remove_load before it moves to the next page however it still doesn't seem to clear it.

    Its used in validation so if a user inputs failed validation it pops up.  If they then go and enter correct validation it then moves onto the next page.  If they then use back button this is where it pops up again.  Any ideas?

    Server side:



    void Page_Load(object sender, System.EventArgs e)









    "onclick", "Sys.Application.remove_load(f);");





    void btnSearch_Click(object sender, System.EventArgs e)





    radalertscript = "(function(){var f = function(){radalert('Welcome to RadWindow Prometheus!',     330,     210);Sys.Application.remove_load(f);};Sys.Application.add_load(f);})()";

    Ive also tried using 


    before it moves on to the next page on the postback event

  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 25 Mar 2010 Link to this post

    Hello Michael,

    I see that lingovmir has already answered you in your Stack Overflow post on the same subject. The answer that he provided is correct - the behavior that you experience comes from the way Ajax works.
    What I could suggest as a solution is to Ajaxify the button as well. For convenience I attached a small sample to this thread that shows the suggested approach in action.

    All the best,
    Georgi Tunev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top