Completed
Last Updated: 12 Aug 2019 11:03 by ADMIN
Hayu Rahiza
Created on: 22 Jul 2015 09:32
Category: Gantt
Type: Feature Request
6
Add ContextMenu to ASP.Net AJAX Gantt UI
I need a context menu when user right click on particular task. Is it possible?
Attached Files:
1 comment
ADMIN
Rumen
Posted on: 12 Aug 2019 11:02
Hi Hayu,

Thank you for your feature request!

You could manually attach a RadContextMenu to the Gantt tasks:
<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>

and implement the desired custom logic.

Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.