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

[Solved] bind RadWindow event

4 Answers 130 Views
Window
This is a migrated thread and some comments may be shown as answers.
Elton
Top achievements
Rank 1
Elton asked on 26 Mar 2008, 01:48 AM
Hello,

I try to use events like onclientclose but it never fire.
I tried to add that in design mode:

<

telerik:RadWindow ID="rdwPwd" runat="server" Modal="true" Skin="Office2007" DestroyOnClose="false" OnClientClose="OnClientClose"></telerik:RadWindow>

and in by javascript:

ownd.add_Close(func);  //this one give me stack out of bound error

function func(a, b) {}  

and :

ownd.OnClientClose = func // not work either.

So how can I fire these events?

Regards,
Elton

4 Answers, 1 is accepted

Sort by
0
Elton
Top achievements
Rank 1
answered on 26 Mar 2008, 04:32 AM
In my case,  telerikwindow and function are in different frames, so I have to use javascript to bind events, otherwise compiler would complain cannot find functions (event handler).

So I m looking for a way of binding event by javascript.

Thanx
Elton
0
Georgi Tunev
Telerik team
answered on 26 Mar 2008, 04:46 PM
Hi Elton,

The error that you get - stack out of bounds, is a known problem in the MS AJAX framework which is not directly related to the RadWindow control. It occurs because of the debugging client code that the framework outputs when the debugging is set to true in your web.config:

<!--
      Set compilation debug="true" to insert debugging
      symbols into the compiled page. Because this
      affects performance, set this value to true only
      during development.
-->
    
<compilation debug="true">

If you switch the debugging off, you should not experience these problems.


Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Elton
Top achievements
Rank 1
answered on 26 Mar 2008, 10:11 PM
Hello Georgi ,
Thanku for your reply,

I may modify the web.config to avoid the error from poping up but the problem is the event handler never fire.

I was using add_Close(func) and the signature of my func:

function func(a, b)
{}

any problem with this?

Cheers,
Elton
0
Georgi Tunev
Telerik team
answered on 27 Mar 2008, 02:08 PM
Hi Elton,

Your code looks fine and at this point I cannot tell what the problem might be. Can you please open a support ticket and send me a small sample project where this error can be reproduced?
Please make sure that the project can be run locally and attach it to the support thread - I will check it and get back to you right away.




Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Elton
Top achievements
Rank 1
Answers by
Elton
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or