Our pure JavaScript Scheduler component


Post by Aniket »

Team,

I want to modify/remove the "Delete Record" from the context menu from the context menu of the column.

Or How can I modify the text "Delete Record" from the context menu, as it is shown by default

Pls see the attcahed screenshot

Attachments
columncontextMenu.png
columncontextMenu.png (78.38 KiB) Viewed 694 times

Post by fabio.mazza »

Hi Aniket,

You can disable or configure it using this config: https://www.bryntum.com/docs/scheduler/#Grid/feature/ContextMenu

Best regards,
Fabio


Post by Aniket »

Fabio,

I dont want to disable the context menu, I want to have it but I want to remove the "Delete Record" which is shown by default


Post by fabio.mazza »

Ankiet, you can not show it and add your custom delete item like this:

const scheduler = new Scheduler({
    ...
    showRemoveRowInContextMenu : false,
    features                   : {
        contextMenu : {
            cellItems : [
                { text : 'My delete item', icon : 'fa fa-car', weight : 200 }
            ]
        }
    }
});

Best regards,
Fabio


Post Reply