react-redux-grid icon indicating copy to clipboard operation
react-redux-grid copied to clipboard

Unable to remove "Edit" item from grid actions

Open GryaznovGI opened this issue 6 years ago • 2 comments

First of all, thank you for the great component!

I am trying to add grid actions for my grid like the following:

GRID_ACTIONS: {
    menu: [{
        text: 'Add subclass',
        key: 'add-subclass-menu-key',
        EVENT_HANDLER: this.onAddSubclass,
    }, {
        text: 'Edit class',
        key: 'edit-class-menu-key',
        EVENT_HANDLER: this.onEditClass,
    }, {
        text: 'Delete class',
        key: 'delete-class-menu-key',
        EVENT_HANDLER: this.onDeleteClass,
    }],
},

But I see one more menu item "Edit" that wasn't be added in this section. I suppose it is some default action to edit row data. But is it possible to setup grid actions without Edit item?

GryaznovGI avatar Dec 08 '18 10:12 GryaznovGI

Also, could you please clarify. Can I combine tree mode with custom column renderer?

GryaznovGI avatar Dec 08 '18 11:12 GryaznovGI

Could you hide the edit item with CSS?

Also I believe the renderer works with tree mode as well.

bencripps avatar Dec 09 '18 06:12 bencripps