This is a migrated thread and some comments may be shown as answers.

Button in Modal window causes full postback

2 Answers 110 Views
Window
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 26 Nov 2015, 02:38 AM

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 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 26 Nov 2015, 05:39 AM

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


Regards,

Marin Bratanov
Telerik
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
0
Nick
Top achievements
Rank 1
answered on 26 Nov 2015, 02:55 PM

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...

 Regards,

 Nick..

 

Tags
Window
Asked by
Nick
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Nick
Top achievements
Rank 1
Share this question
or