Modal Radwindow problems after close

6 posts, 0 answers
  1. Thomas Eberhard
    Thomas  Eberhard avatar
    17 posts
    Member since:
    Mar 2006

    Posted 05 Feb 2009 Link to this post

    We have a problem that we're able to reproduce consistently with nothing on a page but a radwindowmanager and a few textboxes.

    When we popup a modal dialog and then close it the ability to tab between the textboxes is removed. We've tried everything to no avail. If the dialog is not modal everything works fine. Is there something we need to do to fix this or is this a bug with telerik?

    Thomas Eberhard

    Below is the page we're using - the "Pagewithinformation" doesn't have any affect on the popup as we've tried it with many different pages and they're all the same
    <html> 
        <head> 
            <title>Title</title> 
            <script type="text/javascript"
                function OnClientClose() [ ] 
                function CallBackFunction() [ ] 
     
                function ShowInformation() [ 
                        var oManager = GetRadWindowManager(); 
                        var oMailWnd; 
                        oMailWnd = window.radopen('Pagewithinformation.aspx'); 
                        oMailWnd.setSize(400, 250); 
                        oMailWnd.set_modal(true); 
                ] 
                     
            </script> 
     
        </head> 
        <body> 
            <form runat="server"
                <asp:ScriptManager ID="ScriptManager" runat="server"></asp:ScriptManager> 
                <telerik:RadWindowManager 
                    ID="radWindowManager" 
                    Skin="Office2007" 
                    VisibleOnPageLoad="true" 
                    OnClientClose="OnClientClose" 
                    Width="468" 
                    ClientCallBackFunction="CallBackFunction" 
                    VisibleStatusBar="false" 
                    Height="306px" 
                    runat="server"
                </telerik:RadWindowManager>     
     
            <asp:TextBox ID="TextBox1" runat="server" /> 
            <asp:TextBox ID="TextBox2" runat="server" /> 
            <asp:TextBox ID="TextBox3" runat="server" /> 
            <asp:TextBox ID="TextBox4" runat="server" /> 
            <asp:TextBox ID="TextBox5" runat="server" /> 
            <asp:TextBox ID="TextBox6" runat="server" /> 
            <asp:TextBox ID="TextBox7" runat="server" /> 
            <asp:TextBox ID="TextBox8" runat="server" /> 
            <asp:TextBox ID="TextBox9" runat="server" /> 
            <button onclick='javascript:ShowInformation();'>Click Me</button> 
            </form> 
        </body> 
    </html> 
     

  2. Thomas Eberhard
    Thomas  Eberhard avatar
    17 posts
    Member since:
    Mar 2006

    Posted 05 Feb 2009 Link to this post


    It looks like it could be this line: this._saveTabIndexes[i].index
    maybe it should just be this._saveTabIndexes[i]?

    for(var i=0;i<this._saveTabIndexes.length;i++)[ 
    this._saveTabIndexes[i].tag.tabIndex=this._saveTabIndexes[i].index; 
     

    Guess not. After massive testing it looks like that function must not be called when you close the dialog box (_restoreTabs()) I removed the tabs and added the tabs in the same manner as the window and i can get it to work just fine. I'd really like to get this resolved as it affects the input of several of our production sites. Thanks for your attention.

    Thomas Eberhard
  3. Thomas Eberhard
    Thomas  Eberhard avatar
    17 posts
    Member since:
    Mar 2006

    Posted 09 Feb 2009 Link to this post

    Bump. This issue also seems to affect drop downs that are contained within a hidden div at the the time of the popup. This is in IE6 only.
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 10 Feb 2009 Link to this post

    Hello Thomas,

    Thank you for bringing this problem to our attention. We investigated it and the reason is in one of the few lines of code that we borrowed form the MS AJax toolkit. We need some more time to investigate deeper and I logged this issue in our database for fixing.
    For the time being, I suggest to use the following script - it must be placed in the form:

    <head runat="server"
        <title>Untitled Page</title> 
         <script type="text/javascript">  
                function OnClientClose() { }  
                function CallBackFunction() { } 
      
                function ShowInformation() {  
                        var oManager = GetRadWindowManager();  
                        var oMailWnd;  
                        oMailWnd = window.radopen();  
                        oMailWnd.setSize(400, 250);  
                         
                }                                    
            </script>  
    </head> 
    <body> 
        <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager" runat="server"></asp:ScriptManager>  
         
        <script type="text/javascript"
          Telerik.Web.UI.ModalExtender.prototype._restoreTab = function() 
          {                 
            for (var i = 0; i < this._saveTabIndexes.length; i++)  
            {               
                this._saveTabIndexes[i].tag.tabIndex = ""
            }         
        }     
        </script> 
                <telerik:RadWindowManager  
                    ID="radWindowManager"  
                     
                     
                     
                    Modal="true" 
                     
                     
                     
                    Skin="Office2007"  
                    VisibleOnPageLoad="true"  
                    OnClientClose="OnClientClose"  
                    Width="468"  
                    ClientCallBackFunction="CallBackFunction"  
                    VisibleStatusBar="false"  
                    Height="306px"  
                    runat="server">  
                </telerik:RadWindowManager>      
      
            <asp:TextBox ID="TextBox1" runat="server" />  
            <asp:TextBox ID="TextBox2" runat="server" />  
            <asp:TextBox ID="TextBox3" runat="server" />  
            <asp:TextBox ID="TextBox4" runat="server" />  
            <asp:TextBox ID="TextBox5" runat="server" />  
            <asp:TextBox ID="TextBox6" runat="server" />  
            <asp:TextBox ID="TextBox7" runat="server" />  
            <asp:TextBox ID="TextBox8" runat="server" />  
            <asp:TextBox ID="TextBox9" runat="server" />  
            <button onclick='javascript:ShowInformation();'>Click Me</button>  
        </form> 

    I hope this helps. Your points have been updated for the report.


    All the best,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Wiktor
    Wiktor avatar
    8 posts
    Member since:
    Apr 2010

    Posted 14 May 2010 Link to this post

    Hello Telerik,
    this thread seems to be very old, but we've recently discovered very similar problem on our side.
    After window is opened with radopen, all tabindexes are reset in top window (the same behavior appears in IE7 and IE8). We are using dll version 2010.1.415.35.
    The trick presented by Georgi worked, therefore I would like to know, whether it was actually fixed in Telerik libraries.

    Kind regards,
    Wiktor
  6. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 17 May 2010 Link to this post

    Hello Wiktor,

    The problem is fixed but the fix has not been available yet. However, it will be included in the next internal build and in any later versions of RadControls. I also examined the fix you are using and I can strongly recommend to remove it once the fix is available and to upgrade because this will ensure all cases while the current fix you are using will work only in ceratin case and it also overrides internal method which might cause problems with future upgrades.

    I hope that my reply is helpful, let me know in case you have any other questions - I will be glad to help.

    Kind regards,
    Svetlina
    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.
Back to Top