I need a context menu when user right click on particular task. Is it possible?
<
telerik:RadContextMenu
runat
=
"server"
ID
=
"ContextMenu1"
>
<
Items
>
<
telerik:RadMenuItem
Text
=
"All Devices"
Value
=
"allDevices"
/>
<
telerik:RadMenuItem
Text
=
"Phone"
Value
=
"phoneP"
/>
</
Items
>
</
telerik:RadContextMenu
>
<
script
>
function pageLoad() {
$telerik.$('.rgtTask').mousedown(function (e) {
if (e.button == 2) {
var contextMenu = $find("<%= ContextMenu1.ClientID %>");
contextMenu.show(e);
return false;
}
return true;
});
}
</
script
>