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

Radwindow from Radmenu on master page

1 Answer 90 Views
Window
This is a migrated thread and some comments may be shown as answers.
David Penny
Top achievements
Rank 2
David Penny asked on 15 Oct 2009, 01:14 PM
Hi,

I have looked at a couple of other threads here that have told me how to call a Radwindow from a Radmenu, and my Javascript is getting called, but gives an error.  I think it may be caused because the RadMenu is on a master page, and I am not sure whether RadWindow needs to be on the master page or the content page that is loaded.

My definition has the master page containing the RadMenu with the javascript being executed also on the Master page.  The RadWindow is on the master page as well, but when called gives "object undefined".  The internal calling routine is shown as:

window.radopen=

function(b,a){var c=GetRadWindowManager();

 

return

 

c.open(b,a)

 

};

Where c is returned as undefined.  My values have been passed in b and a correctly.

This is almost working, but I'm not sure whether it's because of the Master Page issue.

David Penny.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 16 Oct 2009, 11:11 AM
Hello David,

If GetRadWindowManager() returns "undefined", this means that for some reason the manager is still not rendered on the page when you try to call it - for example this could happen if you load it with Ajax. To be able to help however, we need to have a better view over your exact setup and logic.

Please open a support ticket and send us a sample project so we could investigate further.



Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
David Penny
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Share this question
or