Avatar of vikasbapat
vikasbapat asked on

Call Back Function

Hi,

I have one default page (default.aspx) inside that i have one user control containing rad grid.
On click of the link button (which is one column in grid) i am opening the rad window.
On click of update button (which is inside rad window ) i want to close the rad window and refresh the calling page (default.aspx).

It closes the rad window but could not refresh the calling Page(Default.aspx).
Please assist.

Code in rad window.
<script type="text/javascript">
   function CloseAndbind(status)  
        {  
                   
            var obj = GetRadWindow();
            obj.CallBack(status);
        }  
         
        function GetRadWindow()  
        {  
            var oWindow = null;  
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog  
              else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz az well)  
            return oWindow;  
        }  
    </script>

code in calling page (default.aspx)

<script type="text/javascript">

        function CallBackFunction(radWindow,returnValue1)
        {            
            callButtonClick();          
        }
        function callButtonClick()
        {
              var _btn = document.getElementById('<%= Button1.ClientID%>');                              
                  _btn.click();      
                  
        }
</script>

         
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behaviors="Close,Move,Reload"
          Modal="true" Animation="None" ClientCallBackFunction="CallBackFunction" ShowContentDuringLoad="true" VisibleStatusbar="true"
               Skin="WebBlue">
           <Windows>
                <telerik:RadWindow Width="910px" Height="640px" ClientCallBackFunction="CallBackFunction"
                 Runat="server" Id="Radwindow1"
                            VisibleStatusbar="false" >               
                </telerik:RadWindow>
           </Windows>  
</telerik:RadWindowManager>
.NET ProgrammingJavaScript

Avatar of undefined
Last Comment
b0lsc0tt

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
b0lsc0tt

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
b0lsc0tt

TheLearnedOne,

If I read this right and he wanted to know how to reload the page in Javascript then my comment above would be the answer.  If you feel I misread this or made some mistake then please let me know.  Otherwise I object and recommend closing this by accepting my comment at http:#21633856 .

Let me know if you have a question about this.  Thanks a lot for your time cleaning and help here.

bol
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes