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

Telerik RadWindowManager ArgumentTypeException

1 Answer 48 Views
Window
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 28 Sep 2008, 12:47 PM
I'm using a RadWindowManager on a page. (Using version 2008.1.415.20)


I have 3 linkbuttons that when clicked on call the same javascript 

function openRadWindowCompany(url) {
            var oWnd = radopen("ViewCompanyInfo.aspx?BusID=" + url);
            oWnd.center();
        }
       
        function openRadWindowCoupon(url) {
            var oWnd = radopen("ViewCoupons.aspx?BusID=" + url);
            oWnd.center();
        }
       
        function openRadWindowReferral(url) {
            var oWnd = radopen("ViewCompanyReferralBonus.aspx?BusID=" + url);
            oWnd.center();
        }

this is the code in the grid to call the js.

<asp:TemplateField>
                                <ItemTemplate>
                                    <a href="javascript:openRadWindowCompany('<%# originalAttribute="href" originalPath=""javascript:openRadWindowCompany('<%#" Eval("SearchBiz.ID")%>')">View Company information</a><br />

                                    <a href="javascript:openRadWindowCoupon('<%# originalAttribute="href" originalPath=""javascript:openRadWindowCoupon('<%#" Eval("SearchBiz.ID")%>')"> View Company coupons </a><br />

                                    <a href="javascript:openRadWindowReferral('<%# originalAttribute="href" originalPath=""javascript:openRadWindowReferral('<%#" Eval("SearchBiz.ID")%>')"> View Refferal Information</a>

                                </ItemTemplate>

                            </asp:TemplateField>

The problem I'm getting is this: If i load the page on the inital page load evrything works as it should.

As soon as I do a postback (another search and reload the grid) suddenlly I'm getting this error:

Line: 526
Char: 43
Error: Sys.ArgumentTypeException: Object of type 'Telerik.Web.UI.RadWindowManager' cannot be converted to type 'Telerik.Web.UI.RadWindowManager'.
Parameter name: instance.
Code: 0

Does anyone have any idea why?

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 30 Sep 2008, 08:32 AM
Hi Joshua,

Are you by any chance have the smartnavigation property set to true?

Greetings,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Joshua
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or