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

Compatibility view breaks latest version of RadWindow

2 Answers 75 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 1
Rich asked on 27 May 2011, 12:18 AM
Hi All,

I'm not sure why but when using compatibility view in ie9 all of my radwindows "OnClientClose" functions are not being called. I've updated to the latest version of the controls (My 19th) and no go.

example:

<

 

 

telerik:RadWindow Skin="Default" runat="server" ShowContentDuringLoad="false" Width="700px"

 

 

 

Height="500px" Behaviors="Close" Modal="true" ID="RdWindowCO2Refinement" Title="A Window"

 

 

 

VisibleStatusbar="false" OnClientClose="OnClientClose" />  

 

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 30 May 2011, 12:58 PM
Hi Rich,

I tried your code, but everything worked as expected - I tested with a standalone RadWindow and one in a RadWindowManager. Could you please check the attached test page and let me know if I missed anything?


Best wishes,
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.

0
Rich
Top achievements
Rank 1
answered on 30 May 2011, 07:24 PM
Hi Georgi,

You are correct, your example does work!

I was using JSON library which most modern browsers handle with a reference:

function OnClientClose(sender, eventArgs) { //when the window is closed, grab the selected costDriverID from the window and fire callback
            var arg = eventArgs.get_argument();
            if (arg) {
                InitiateAjaxRequest(JSON.stringify(arg));
            }         
        }

JSON.stringify was throwing an error. i added an explicit reference to the JSON library and it's now working in ie7 and ie6.

Thanks for your help!


Rich
Tags
General Discussions
Asked by
Rich
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Rich
Top achievements
Rank 1
Share this question
or