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

radopen not working in radmenu

2 Answers 67 Views
Menu
This is a migrated thread and some comments may be shown as answers.
prayag ganoje
Top achievements
Rank 1
prayag ganoje asked on 28 Jul 2010, 03:25 PM
Hello,

I want to open a radwindow through radmenu. But its not working.

<telerik:RadAjaxManager runat="server">
</telerik:RadAjaxManager>
<telerik:RadWindowManager runat="server">
<Windows>
<telerik:RadWindow ID="RadWindowEmailClient" runat="server" ShowContentDuringLoad="false"
Behaviors="Close" AutoSize="true" VisibleStatusbar="false" Title="Create New Customer Party"
Animation="Slide" Skin="Vista">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>


<telerik:RadMenu ID="RadMenuIndex" runat="server" Style="padding-top: 20px; padding-bottom: 30px;"
EnableRoundedCorners="true" EnableShadows="true" Skin="Web20" OnClientItemClicked="openRadWin">
</telerik:RadMenu>

javascript function is as follows:
<script type="text/javascript">
//<![CDATA[
function openRadWin(sender, eventArgs) {
//var selectedImportType = eventArgs.item.value();
window.radopen("Search.aspx", 'RadWindowEmailClient');
return false;
}
//]]>                                                                        
</script>

Also the errormessage is attached in the image. Can you please let me know why this error is comming in ?

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 29 Jul 2010, 08:14 AM
Hi prayag,

I've tested the provided code and it worked as expected. The only error I see is in the commented line, it should be like this:

var selectedImportType = eventArgs.get_item().get_value();

Greetings,
Yana
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
0
prayag ganoje
Top achievements
Rank 1
answered on 30 Jul 2010, 03:31 PM
Thanks Its working now. Actusly I had added AjaxToolKit also in workspace.

When I removed it started working properly.

Tags
Menu
Asked by
prayag ganoje
Top achievements
Rank 1
Answers by
Yana
Telerik team
prayag ganoje
Top achievements
Rank 1
Share this question
or