Hi,
I've added the following clientcontextmenu to a RadListBox (with checkboxes)
On the line "var listbox = item.get_listbox();" i get an error Object doesn't support mproperty or method.
So i replaced the item.get_listbox() with item._parent and then it does work. But i believe it would be better to call the get_listbox() method.
Any ideas about why i get that error? The client-api documentation states that there is such a method and i even see it in the Visual Studio watch window when i debug the code. I'm using Telerik assembly version 2009.2.701.35
I've added the following clientcontextmenu to a RadListBox (with checkboxes)
function showCheckListboxContextMenu(sender, eventArgs) { |
var menu = $find("<%= checkListboxRadMenu.ClientID %>"); |
if (menu != null) { |
var item = eventArgs.get_item(); |
var listbox = item.get_listbox(); |
document.getElementById("contextMenuCheckListboxID").value = listbox.get_id(); |
menu.show(eventArgs.get_domEvent()); |
} |
} |
On the line "var listbox = item.get_listbox();" i get an error Object doesn't support mproperty or method.
So i replaced the item.get_listbox() with item._parent and then it does work. But i believe it would be better to call the get_listbox() method.
Any ideas about why i get that error? The client-api documentation states that there is such a method and i even see it in the Visual Studio watch window when i debug the code. I'm using Telerik assembly version 2009.2.701.35