[Solved] Disable messageActions in Chat component?

2 Answers 9 Views
Chat
Douglas
Top achievements
Rank 2
Iron
Iron
Douglas asked on 04 Dec 2026, 07:59 AM

Hi,

Is there a way to completly disable the right click context menu on a chat bubble?

Our users are complain on this and dont like it:

Docs says nothing about how to disable it as I can find:
https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/chat/configuration/messageactions#messageactions

I have tried with this with no luck: 
messageActions: [],
messageActions: false,
messageActions: null,

 

Any way to disabled it?

Regards,
Douglas

2 Answers, 1 is accepted

Sort by
1
Accepted
Rumen
Telerik team
answered on 04 Dec 2026, 02:52 PM

Hi Douglas,

You're right, my previous suggestion also suppresses the browser’s context menu. The solution is to keep the two settings and to add a handler after initializing the Chat:

$("#chat .k-message-list").on("contextmenu", ".k-chat-bubble", function(e) {
    e.stopPropagation();
});

This stops the event from reaching the Chat’s menu handler without preventing the browser’s default action. It relies on the Chat’s rendered CSS classes, so please retest it when upgrading.

See the updated Dojo example at https://dojo.telerik.com/mPjvyDwn.

Regards,
Rumen
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Douglas
Top achievements
Rank 2
Iron
Iron
commented on 04 Dec 2026, 04:07 PM

Thanks! Now its completely disabled!
1
Rumen
Telerik team
answered on 04 Dec 2026, 08:29 AM

Hi Douglas,

You can disable the Chat context menu for both your own and received messages using the following settings:

$("#chat").kendoChat({
    authorMessageSettings: {
        enableContextMenuActions: false
    },
    receiverMessageSettings: {
        enableContextMenuActions: false
    }
});

I've prepared a Dojo example that compares the default behavior with the disabled context menu. Click Run, then right-click either message to see the difference.

The example uses Kendo UI version 2026.4.1111.

Regards,
Rumen
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Douglas
Top achievements
Rank 2
Iron
Iron
commented on 04 Dec 2026, 09:30 AM

I missed these new settings, but I’ll take a closer look at them.

Thanks for the quick help!

Douglas
Top achievements
Rank 2
Iron
Iron
commented on 04 Dec 2026, 02:18 PM

Hi again!

The custom context menu is gone, but so is the browser’s built-in context menu. Now nothing appears when I right-click the chat bubble.
Tags
Chat
Asked by
Douglas
Top achievements
Rank 2
Iron
Iron
Answers by
Rumen
Telerik team
Share this question
or