# ExtJS - Shopware.grid.panel - wie fügt man einen store hinzu?

**URL:** <https://forum.shopware.com/t/extjs-shopware-grid-panel-wie-fugt-man-einen-store-hinzu/48310>\
**Category:** Programmierung\
**Created:** [16. September 2017 um 20:08 UTC](https://forum.shopware.com/t/extjs-shopware-grid-panel-wie-fugt-man-einen-store-hinzu/48310 "2017-09-16T20:08:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![team2](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@team2](https://forum.shopware.com/u/team2)\
**Post date:** [16. September 2017 um 20:08 UTC](https://forum.shopware.com/t/extjs-shopware-grid-panel-wie-fugt-man-einen-store-hinzu/48310/1 "2017-09-16T20:08:41Z")

</div>

Ich erstelle im Backend in einem Plugin eine grid, die ich von Shopware.grid.Panel ableite, das sieht so aus:

```
Ext.define('Shopware.apps.Test.view.main.Grid', {
    extend: 'Shopware.grid.Panel',
    alias: 'widget.test-grid',
    store: 'Shopware.apps.Test.store.Test',
});

```

Allerdings bekomm ich folgenden Fehler angezeigt:

uncaught exception: Shopware configuration error: Shopware.apps.Test.view.main.Grid: Component requires a configured store, which has to been passed in the class constructor.

Mir ist nicht wirklich klar wie ich den store überhaupt übergeben soll. Bei den Shopware-Standard-Dateien, die auch von Shopware.grid.Panel erben, wird nirgends ein store explizit angegeben.

Wie funktioniert das mit Shopware.grid.Panel?
