RadWindow OnClientClose is undefined

5 posts, 0 answers
  1. sudhakar
    sudhakar avatar
    35 posts
    Member since:
    Jul 2010

    Posted 14 Sep 2010 Link to this post

    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

     

     

     



     

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 14 Sep 2010 Link to this post

    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
  3. sudhakar
    sudhakar avatar
    35 posts
    Member since:
    Jul 2010

    Posted 21 Sep 2010 Link to this post

    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
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 22 Sep 2010 Link to this post

    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
  5. Anand
    Anand avatar
    8 posts
    Member since:
    Mar 2014

    Posted 20 Jan in reply to sudhakar Link to this post

    hi, i am facing the same issue...did you solved the issue?
Back to Top