Panels in 4.x use a "dockedItems" config property to specify the docked toolbars/components. This is, I believe, different from 3.x. I'd recommend reading the documentation for the dockedItems config, and perhaps also the addDocked and removeDocked methods.

You're overriding the initComponent() method of the grid panel, but you don't ever call the parent. I'm guessing that will cause problems for you with some members of the class not being initialized. Try doing something like this:

You're overriding the initComponent() method of the grid panel, but you don't ever call the parent. I'm guessing that will cause problems for you with some members of the class not being initialized. Try doing something like this: