Button in Modal window causes full postback

3 posts, 0 answers
  1. Nick
    Nick avatar
    23 posts
    Member since:
    Jan 2012

    Posted 25 Nov 2015 Link to this post

    HI Telerik

    In my application, I have a Radwindow which is entirely created in javascript as follows:

    var oWnd = radopen("Default.aspx", "EditWindow", 1100, 800, 0, 0); 


    After this window is loaded , it has a button that is executing code on server side. Clicking this button causes full postback and page is reloaded in the Radwindow. I have all the ajaxsettings for all the controls that are being updated by this button. Still, I don't understand what is causing this postback.. Please advise.

    Thank you very much in advance for your help..





  2. Marin Bratanov
    Marin Bratanov avatar
    4533 posts

    Posted 25 Nov 2015 Link to this post

    Hi Nick,

    Since you load an entire page in the RadWindow, RadWindow does not change its AJAX behavior. You can read more on using a RadWindow with AJAX in the documentation: http://docs.telerik.com/devtools/aspnet-ajax/controls/window/how-to/how-to-use-radwindow-with-ajax.

    After that, I advise you review the default.aspx page by itself and see what is going on with it in order to fix its problems. Here are some pointers on common problems:

    • there is a JavaScript error
    • there is a server-side error trapped by the MS AJAX library
    • there is invalid markup
    • there are nested AjaxSettings or UpdatePanels which can cause errors
    • some controls have initially Visible=false so they cannot be captured by RadAjax


    Marin Bratanov
    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
  3. Nick
    Nick avatar
    23 posts
    Member since:
    Jan 2012

    Posted 26 Nov 2015 in reply to Marin Bratanov Link to this post

    Hi Marin..

     Thank you very much for your quick reply..

     Let me review all the cases that you suggested and I will let you know...




Back to Top