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

IE6 - Dropdowns not restored after .Close()

7 Answers 87 Views
Window
This is a migrated thread and some comments may be shown as answers.
Kevin Schneider
Top achievements
Rank 1
Kevin Schneider asked on 10 Sep 2008, 07:49 PM
Hi,

I'm having an issue with the dropdownlist controls not being made visible after opening/closing a modal window.

It seems to me that if the JavaScript is able to hide the dropdownlist's when the window is first opened, that it should be able to restore their previous state when it is closed.

I attempted to create a small page to test this outside of our application and it did indeed hide the dropdownlist on show, and restore it back afterwards.

In your experience what could cause an issue like this?  There is no JavaScript errors ocurring that would halt your events from firing.

Thanks

Edit:  This was meant for the Window forum, could a mod please move it?

7 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 11 Sep 2008, 01:43 PM
Hi Kevin,

I've seen a similar problem before where the user was making a postback on the parent page before the RadWindow was closed completely - e.g. before the modal layer is removed and the code for enabling the dropdowns to run. Could this be your case too?



Sincerely yours,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kevin Schneider
Top achievements
Rank 1
answered on 11 Sep 2008, 01:49 PM
I don't think so...$0$0$0$0I'm using the window and making it act like a wizard.  There are next/previous buttons and eventually a finish.  However on every step there is also a cancel button.  The cancel button just executes some JavaScript that gets an instance of the radwindow and calls the Close() method.  No postbacks occur at this point.  There isn't even a JavaScript event attached to the onclose for the window.$0$0$0$0$0However if the wizard is completed and they click finish at the end then it will refresh the screen and this works correctly.$0$0$0$0$0Thanks$0$0$0$0$0$0$0
0
Georgi Tunev
Telerik team
answered on 11 Sep 2008, 01:59 PM
Hello Kevin,

In such case it will be best to open a support ticket and to send me a small sample project where this behavior can be reproduced. I will check it and get back to you right away.



Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
OgOJack
Top achievements
Rank 1
answered on 18 Dec 2008, 05:21 PM
I have the same problem, but in my case can happen a situation, when postback of parent page can be before radwindow closing. What can I do with this problem?


Best wishes,
Eugene Grebeshkov
0
Georgi Tunev
Telerik team
answered on 19 Dec 2008, 09:45 AM
Hello OgOJack,

When there is a modal RadWindow on the page, users will not be able to click other buttons on the parent page until the window is closed. That is why I assume that you are calling a postback from within RadWindow.
If this is so, I suggest to execute the following function before that - it assumes that all dropdowns on the page were previously enabled, so you may need to change the logic if needed:

function EnableInputs() 
    var lists = document.getElementsByTagName("SELECT"); 
    for (var i=0; i < lists.length; i++) 
    {            
        lists[i].removeAttribute("disabled");                 
    } 
 



Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
OgOJack
Top achievements
Rank 1
answered on 19 Dec 2008, 04:46 PM
Thanks a lot for your reply. But I faced with one more little issue. In my case after button clicking in radwindow some server actions proceed and then I have:
ClientScript.RegisterStartupScript(Page.GetType(), "mykey""CloseAndRebind();"true); 

Where
function CloseAndRebind(args) 
            { 
                GetRadWindow().close(); 
                GetRadWindow().BrowserWindow.refreshGridSR(args); 
            } 
  function GetRadWindow() 
            { 
                var oWindow = null
                if (window.radWindow) oWindow = window.radWindow; 
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                return oWindow; 
            } 

and in parent window i have:
 function refreshGridSR(arg) 
    { 
        <%= Page.ClientScript.GetPostBackEventReference(btnRefresh, "") %>; 
    } 
And my problem is that in IE6 on slow connections I have iframe in the place of former RadWindow. Is it possible to cope with this issue. Hope for your reply.

Best wishes,
Eugene Grebeshkov.
0
Georgi Tunev
Telerik team
answered on 20 Dec 2008, 01:02 PM
Hello OgOJack,

Please open a support ticket and send us a small sample project that reproduces your setup and the problem itself. We will check it right away.



Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Kevin Schneider
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Kevin Schneider
Top achievements
Rank 1
OgOJack
Top achievements
Rank 1
Share this question
or