onBeforeUnload causing PageRequestManagerParserErrorException

3 posts, 0 answers
  1. Ankit
    Ankit avatar
    3 posts
    Member since:
    Feb 2012

    Posted 24 Sep 2015 Link to this post


    I am getting following error If I ​​use any control inside RadAjaxPanel that causes autopostback (such as changing RadComboBox selection), once after seeing the confirmation from "OnBeforeUnload" event and opts to ​Stay on the ​page.


    Exception: screen:sys.webforms.pagerequestmanagerparsererrorexception

    I am using following code for on​BeforeUnload event handling:

                    window.onbeforeunload = function(e)
                        if (IsDirty() == true)
                            var ev = e || window.event;
                            ev.returnValue = "Are you sure?";
                            return "Are you sure?";

    Reference url: http://www.telerik.com/forums/isdirty---ajax-dirty-panel


    Please help me into this issue.




  2. Ankit
    Ankit avatar
    3 posts
    Member since:
    Feb 2012

    Posted 25 Sep 2015 in reply to Ankit Link to this post

    Update: I am using MasterPage in this.
  3. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 29 Sep 2015 Link to this post


    Please share your page markup as well as the ajax settings so that we can revise them locally and advise you further.

    Maria Ilieva
    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 Feedback Portal and vote to affect the priority of the items
Back to Top