How to remove actions from detail grid


#1

I have a form with detail grid. This grid contains “Add” button in the header. I need to remove this button, how can I do this?


#2

To hide some of predefined actions pass action names to hideActions config property.

xtype: "ubdetailgrid",
hideActions: ["addNew"]

This will remove a “add new” button from toolbar, all actions menu and popup


#3

You also might find it useful to look at the following FAQ resource: https://git-pub.intecracy.com/unitybase/ubjs/wikis/unitybase-adminui-and-extjs-knowledgebase, it has entire section dedicated to questions about grid customization.