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

RadWindow OnClientClose is undefined

4 Answers 94 Views
Window
This is a migrated thread and some comments may be shown as answers.
sudhakar
Top achievements
Rank 1
sudhakar asked on 14 Sep 2010, 09:03 AM
Hello Telerik Team,

I am getting one error in javascript displaying as "OnClientClose " is undefined.

Below are the steps.
1) I am opening a popup through the below code:

 

 

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleStatusbar="false" >
<Windows >
<telerik:RadWindow ID="TaskList" runat="server" Title="TaskList" modal="true" 
OnClientClose="OnClientClose"></telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>


//Call a javacript code 
  
<script type="text/javascript">
function OnClientClose(oWnd, args)  
        oWnd.setUrl("XYZ.aspx"); 
}
</script>
Till here its no problem it works perfectly, but as soon as I put this line of of code in javascript shown below
< src="../../includes/validate.js">

It fires the above message saying OnClientClose is undefined on status bar of IE.
If removed the above line again it works perfectly.

Can anyone Please suggest any solution for this.

Regards
Sudhakar

 

 

 



 

4 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 14 Sep 2010, 02:12 PM
Hello sudhakar,

There is no < src="../../includes/validate.js"> tag in HTML so I assume you are adding a <script></script> one. If this is so, what is the code in validate.js?

Greetings,
Georgi Tunev
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
0
sudhakar
Top achievements
Rank 1
answered on 21 Sep 2010, 09:44 AM
Hello Georgie,

Thankyou for the reply.Yes I do put the <src> path inside the <script> tags.
My validate.js file does some vaildation for Other textbox and Combobox.

in this situation the "client close" doesnt work dont know what is the reason,

but other way around if same the path and javascript code is given on codebehind then it works correctly.

Regards
Sudhakar
0
Georgi Tunev
Telerik team
answered on 22 Sep 2010, 02:32 PM
Hi sudhakar,

If the problem occurs only when validate.js is present on the page, I assume that the problem might be in it, but without a reproduction I cannot tell for sure. If you open a support ticket and send me a sample project, I will check it and do my best to provide you with a solution.

Best wishes,
Georgi Tunev
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
0
Season
Top achievements
Rank 1
answered on 20 Jan 2017, 03:55 PM
hi, am facing the same issue...did you  the issue?
Tags
Window
Asked by
sudhakar
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
sudhakar
Top achievements
Rank 1
Season
Top achievements
Rank 1
Share this question
or