I'm using the latest asp radcontrols and trying to open a menu item up by default when the page displays. I'm using the following js sample code from this site:
function openMenu() {
var menu = $find("<%= MainMenu.ClientID %>");
var item = menu.findItemByText("Invoices");
item.open();
}
but VS2008 stops at item.open() and says the method doesn't exist. I can inspect item, see that it's not null, it has a value and see a method list which includes stuff like focus, expand, show, etc but it's right, there's no open method in the list.
Any idea what's wrong? I found a few different samples on the site but they all call item.open.