RadWindow not working in IE8

6 posts, 0 answers
  1. John Prajwal
    John Prajwal avatar
    2 posts
    Member since:
    Apr 2010

    Posted 28 Sep 2010 Link to this post

    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>

     

     

     



  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 28 Sep 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Samantha
    Samantha  avatar
    18 posts
    Member since:
    Sep 2008

    Posted 12 Jun 2011 Link to this post

    HI Georgi,

    has this got anything to do with IE setting?

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


    Regards,
    Samantha
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 13 Jun 2011 Link to this post

    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.

  6. Atif
    Atif avatar
    1 posts
    Member since:
    Apr 2014

    Posted 04 Jun 2015 in reply to Georgi Tunev Link to this post

    Dear Team,

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

  7. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1494 posts

    Posted 04 Jun 2015 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017