I have a some radmenu items with subitems in a dropdown and I need to remove the subitems, my code is.
But i get an error in get_count.. I accomplish to remove the Resource Item but the only thing i want to remove is the Resource subitems..
What is wrong with my code?
function RemoveItems() { var menu = $find("<%= ResourceContextMenu.ClientID %>"); var items = menu.findItemByText("Resources"); for (var i = 0; i < items.get_count(); i++) { items.remove(i); } menu.trackChanges(); menu.commitChanges(); }What is wrong with my code?