When you right click on an item in the ListBox it works as expected. But if you right click in the ListBox but not on an item it gives me the following error any ideas on how to correct this?
"Microsoft JScript runtime error: 'get_item()' is null or not an object"
"Microsoft JScript runtime error: 'get_item()' is null or not an object"
function showContextMenu(sender, e) {
var RadList = $find("Listbox");
var RadListSelected = RadList.get_selectedItem();
var menu = $find("cm1");
var rawEvent = e.get_domEvent().rawEvent;
menu.show(rawEvent);
e.get_item().select(); < ERROR is called on this item because object is nothing
$telerik.cancelRawEvent(rawEvent);
}