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

Trouble with Modal Window

3 Answers 151 Views
Window
This is a migrated thread and some comments may be shown as answers.
Himadri Banerjee
Top achievements
Rank 1
Himadri Banerjee asked on 24 Oct 2008, 07:18 AM
I am trouble with the October Update of the RadWindow. It was working fine with the Jun. July version. The modal popup behaves strange the second time I try to maximize it. It locks up and basically will not let me do anything because it almost behaves like there is some other modal window is blocking it. Here's how am I using it

<script type="text/javascript">
        function onClientCallBack(returnValue)
        {
            var oValue = returnValue.argument;
            var hdnValue=$get('<%=hdnValue.ClientID %>')
            if (oValue == "1")
            {           
                hdnValue.value=(new Date()).getTime();
               __doPostBack( '<%=updGoals.ClientID %>', '');                    
               return true;
            }
            else
            {
                return false;
            }
        }
        function openRadWindow(GID)
        {
            var oWnd = $find("<%=radGoal.ClientID%>");

            if(GID== '')
            {
                oWnd.setUrl("AddEditGoal.aspx");
            }
            else
            {
                oWnd.setUrl("AddEditGoal.aspx?gid="+GID);
            }
            oWnd.show();
        }
</script>

<table>
<tr><td>
<!-- Some other stuff -->
ListView etc.
<!--                    -->
<telerik:RadWindow ID="radGoal" runat="server" Behaviors="Resize,Maximize,Move,Close"Modal="true" Title="AddGoal" VisibleTitlebar="true" VisibleStatusbar="false"Skin="Vista" ReloadOnShow="false" OnClientClose="onClientCallBack" OnClientShow="onclientShow"IconUrl="~/images/previstar.GIF"></telerik:RadWindow>
</td></tr>
</table>


Please let me know what is the difference between the July Service Pack vs. the October one. It only happens when window is open in a Modal State.

Thanks
Himadri

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 27 Oct 2008, 03:30 PM
Hello Himadri,

The code that you posted looks fine and we cannot reproduce the problem on our side. Could you please open a support ticket and send us a small sample project where this issue can be reproduced? We will check it and do our best to help right away.


All the best,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
MD
Top achievements
Rank 1
answered on 06 Nov 2008, 02:41 PM
Is there any update on this as I am experiencing the same issue.  At first I was having an issue after the second modal window was opened for the second time, it would appear behind it's own gray background making it unusable.  I managed to solve that issue by adding the show method in the code when opening the window instead of relying on radopen. However, I am still experiencing the issue whenever the the window is resized, minimized.  This only occurs when opening a second modal window inside of a modal window.  The only way to get around it is to call the show() method in a client side event like onclientcommand so when something changes (minimized, resized, maximized, etc) it is not placed behind the background, but this causes the window to reload when reloadonshow is set to true.  Since the content on the page in my case is dynamic, I don't want it cached so I need reloadonshow to be true for cases when the window might be opened again.

Thanks
0
Georgi Tunev
Telerik team
answered on 07 Nov 2008, 08:30 AM
Hi Matt,

Himadri did not send us a sample project and we were not able to reproduce such problem. If you can isolate it in a small app, please send it to us - we will check it right away and do our best to help.




Greetings,
Georgi Tunev
the Telerik team

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