any idea?
here is the error I get in chrome:
-
Uncaught TypeError: Cannot set property 'control' of undefined
VS210:
- Microsoft JScript runtime error: Object doesn't support this property or method
}
var
H=G._getScrollWrapElement();
if
(!H){
return
;
}
var
z=G._scroller;
if
(!z){
return
;
}
var
N=G._flow||G.get_groupSettings().get_flow(); - on this line
var
L=N==b.ItemFlow.Vertical;
H[L?
"scrollTop"
:
"scrollLeft"
]=0;
var
E=G.get_childListElement();
IE8:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET4.0C; .NET4.0E; SLCC1; InfoPath.3)
Timestamp: Thu, 17 Feb 2011 17:19:52 UTC
Message: Object doesn't support this property or method
Line: 8663
Char: 2
Code: 0
URI: http://biz-devapps.ivey.ca/eZone/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bAjaxControlToolkit%2c+Version%3d4.1.40412.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3aacfc7575-cdee-46af-964f-5d85d9cdcf92%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.3.1317.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a9506cff2-3a86-46c5-b869-6ba1478f3c27%3a16e4e7cd%3a58366029%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3ae4f8f289%3a19620875%3a874f8ea2%3af46195d3%3a490a9d4e
7 Answers, 1 is accepted
We're sorry for the issue you're experiencing.
Could you please give us more details about your scenario and how to reproduce this error? Thanks
Kind regards,
Yana
the Telerik team

I declare a empty context menu with DefaultGroupSettings Height of 100px in html:
<
rad:RadContextMenu
ID
=
"TreeMenu"
runat
=
"server"
EnableEmbeddedBaseStylesheet
=
"true"
OnClientItemClicked
=
"TreeContextMenuItemClicked_Handler"
OnClientShowing
=
"ShowingAddMenu_Handler"
>
<
DefaultGroupSettings
Height
=
"100"
/>
</
rad:RadContextMenu
>
In response to a button click, I add items to the context menu using javascript and display the menu (this is a contrived example, but representative of what the code is doing):
function ShowMenu()
{
var MenuToLoad = $find("<%= TreeMenu.ClientID %>");
var MenuItems = MenuToLoad.get_items();
MenuItems.clear();
var ThisItem = new Telerik.Web.UI.RadMenuItem();
ThisItem.set_text("Item 1");
MenuItems.add(ThisItem);
var ThisItem2 = new Telerik.Web.UI.RadMenuItem();
ThisItem2.set_text("Item 2");
MenuItems.add(ThisItem2);
var ThisItem3 = new Telerik.Web.UI.RadMenuItem();
ThisItem3.set_text("Item 3");
MenuItems.add(ThisItem3);
MenuToLoad.showAt(10,10);
}
The error is generated any time one of the items is clicked in the displayed menu.


Thank you for the suggestion, but I do have an ASP.NET Script Manager on the page.
Were you able to overcome the error?
Seth

I think it had something to do with using the ajaxtoolkit and the telerik toolsin the same site

Hopefully someone from Telerik can chime in with a suggestion.
Could you please try adding a dummy menu item and check if this helps?
<telerik:RadContextMenu ID=
"TreeMenu"
runat=
"server"
>
<Items>
<telerik:RadMenuItem>
</telerik:RadMenuItem>
</Items>
<DefaultGroupSettings Height=
"100"
/>
</telerik:RadContextMenu>
Kind regards,
Peter
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>