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

wierd behavior with Radwindow

1 Answer 35 Views
Window
This is a migrated thread and some comments may be shown as answers.
Anumeha
Top achievements
Rank 1
Anumeha asked on 10 Feb 2011, 01:47 AM
Hi,

In my application I open a pop-up window on click of a button.

the window is declared as below:
<telerik:RadWindow ID="RadWindowDialog" runat="server" Title="Test" DestroyOnClose="false"
        VisibleTitlebar="false" ReloadOnShow="true" ShowContentDuringLoad="false" OnClientClose="OnClientClose"
        Width="525px" Height="575px" Modal="true">
    </telerik:RadWindow>


The code that i use to open the window:
function ShowEditForm(id, btn, act) {
                var oWnd = $find("<%=RadWindowDialog.ClientID%>");
                oWnd.setUrl("Contact.aspx?Contact=" + id + "&Button=" + btn + "&Act=" + act);
                oWnd.show();
  
  
                return false;
            }
  
function OnClientClose(args) {
                var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
                var arg = args.argument
                if (arg) {
                    ajaxManager.ajaxRequest("Rebind");
                }
                else {
                }
            }


I have several windows on my page that behave differently, so I find the window by the window ID. 

On my pop-up page I have  an update and a cancel button.
When the user clicks update I close the window and refresh a grid on the parent page in my clientclose event.

If the user cancels out of the pop-up window and click the button to open the pop-up again everything works fine, howvere if the user clicks the update button and then clcik the button on the parent page to go back to the pop-up the window takes really long to load.

Is there something I am doing wrong here. Any thoughts will be appreciated.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 14 Feb 2011, 02:38 PM
Hello Anumeha,

The code fragments that you posted look OK and at this point I cannot tell what is the reason for the problem. Please open a support ticket and send us a small sample project where the problem could be reproduced so we can investigate further.

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.
Tags
Window
Asked by
Anumeha
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or