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

RadWindow not working in IE8

5 Answers 192 Views
Window
This is a migrated thread and some comments may be shown as answers.
John Prajwal
Top achievements
Rank 1
John Prajwal asked on 28 Sep 2010, 11:04 AM
Hi ,

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

Sort by
0
Georgi Tunev
Telerik team
answered on 28 Sep 2010, 12:02 PM
Hello John,

The reason for this behavior is that you are not canceling the postback. Basically what happens is:
  1. You click the button.
  2. The JavaScript code fires and opens the RadWindow
  3. Postback occurs which reloads the page.
To avoid that, you should cancel the postback - for example you could use
<button  id="btnAddAct" onclick="OpenAddWindow(); return false;">Add Activity</button>
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
0
Samantha
Top achievements
Rank 1
answered on 13 Jun 2011, 04:17 AM
HI Georgi,

has this got anything to do with IE setting?

as there is only one of my user having this problem.


Regards,
Samantha
0
Georgi Tunev
Telerik team
answered on 13 Jun 2011, 01:43 PM
Hi 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.

0
Atif
Top achievements
Rank 1
answered on 04 Jun 2015, 06:01 AM

Dear Team,

 Still same issue, the page get refreshed and popup closed. This is happening only in IE8.

0
Danail Vasilev
Telerik team
answered on 04 Jun 2015, 01:57 PM
Hi Atif,

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
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
Tags
Window
Asked by
John Prajwal
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Samantha
Top achievements
Rank 1
Atif
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or