
I have a radwindow which opens as model pop up. Its working fine IE6.
I am migrating my application to IE8. In IE8 it opens a pop up window but immediately it closes.
Below is code:
Javascript function:
function OpenAddWindow()
{
window.radopen('activitydetail.aspx', 'AddActivity')
}
Wep page
<
radW:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
<radW:RadWindow
Modal="true"
ReloadOnShow="true"
ID="AddActivity"
runat="server" Width="450" Height="350"
NavigateUrl="activitydetail.aspx"
OnClientClose="ClientCallWindow" />
</Windows>
</radW:RadWindowManager>
<
button id="btnAddAct" onclick="OpenAddWindow()">Add Activity</button>
5 Answers, 1 is accepted
The reason for this behavior is that you are not canceling the postback. Basically what happens is:
- You click the button.
- The JavaScript code fires and opens the RadWindow
- Postback occurs which reloads the page.
<button id="btnAddAct" onclick="OpenAddWindow(); return false;">Add Activity</button>
All the best,
Georgi Tunev
the Telerik team

has this got anything to do with IE setting?
as there is only one of my user having this problem.
Regards,
Samantha
This logic is not browser's setting dependent - if you return false after the name of a JavaScript function in in the OnClientClick (onclick in HTML), there should be no postback.
All the best,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Dear Team,
Still same issue, the page get refreshed and popup closed. This is happening only in IE8.
You should use the RadButton client-side API:
<
telerik:RadButton
runat
=
"server"
Text
=
"RadButton"
ID
=
"btnAdd"
OnClientClicking
=
"fnAddUser"
></
telerik:RadButton
>
<
script
language
=
"javascript"
type
=
"text/javascript"
>
function fnAddUser(sender, args) {
window.radopen("AddUser.aspx", "trwAUWin");
args.set_cancel(true);
}
function OnClientclose(sender, eventArgs) {
}
</
script
>
Regards,
Danail Vasilev
Telerik