public function configureColumns(ColumnCollection $collection)
    {
        $collection->add(new Column([
            'id'         => 'id',
            'caption'    => $this->trans('common.label.id'),
            'appearance' => new Appearance([
                'width'   => 90,
                'visible' => false,
            ]),
            'filter'     => new Filter([
                'type' => Filter::FILTER_BETWEEN,
            ]),
        ]));
        
        $collection->add(new Column([
            'id'         => 'name',
            'caption'    => $this->trans('common.label.name'),
            'appearance' => new Appearance([
                'width' => 200,
            ]),
        ]));
        
        $collection->add(new Column([
            'id'       => 'sku',
            'editable' => true,
            'caption'  => $this->trans('common.label.sku'),
        ]));
        
        $collection->add(new Column([
            'id'      => 'category',
            'caption' => $this->trans('common.label.categories'),
            'filter'  => new Filter([
                'type'                => Filter::FILTER_TREE,
                'filtered_column'     => 'categoryId',
                'options'             => $this->get('category.repository')->getDataGridFilterOptions(),
                'load_children_route' => 'admin.category.ajax.get_children',
            ]),
        ]));
        
        $collection->add(new Column([
            'id'       => 'grossAmount',
            'caption'  => $this->trans('common.label.gross_price'),
            'editable' => true,
            'filter'   => new Filter([
                'type' => Filter::FILTER_BETWEEN,
            ]),
        ]));
        
        $collection->add(new Column([
            'id'       => 'stock',
            'caption'  => $this->trans('common.label.stock'),
            'editable' => true,
            'filter'   => new Filter([
                'type' => Filter::FILTER_BETWEEN,
            ]),
        ]));
        
        $collection->add(new Column([
            'id'       => 'weight',
            'caption'  => $this->trans('common.label.dimension.weight'),
            'editable' => true,
            'filter'   => new Filter([
                'type' => Filter::FILTER_BETWEEN,
            ]),
        ]));
    }
public function configureColumns(ColumnCollection $collection)
    {
        $collection->add(new Column([
            'id'         => 'id',
            'caption'    => $this->trans('common.label.id'),
            'appearance' => new Appearance([
                'width'   => 90,
                'visible' => false,
            ]),
            'filter'     => new Filter([
                'type' => Filter::FILTER_BETWEEN,
            ]),
        ]));
        
        $collection->add(new Column([
            'id'         => 'name',
            'caption'    => $this->trans('common.label.name'),
            'appearance' => new Appearance([
                'width' => 200,
            ]),
        ]));
        
        $collection->add(new Column([
            'id'       => 'sku',
            'editable' => true,
            'caption'  => $this->trans('common.label.sku'),
        ]));
        
        $collection->add(new Column([
            'id'      => 'category',
            'caption' => $this->trans('common.label.categories'),
            'filter'  => new Filter([
                'type'                => Filter::FILTER_TREE,
                'filtered_column'     => 'categoryId',
                'options'             => $this->get('category.repository')->getDataGridFilterOptions(),
                'load_children_route' => 'admin.category.ajax.get_children',
            ]),
        ]));
        
        $collection->add(new Column([
            'id'       => 'grossAmount',
            'caption'  => $this->trans('common.label.gross_price'),
            'editable' => true,
            'filter'   => new Filter([
                'type' => Filter::FILTER_BETWEEN,
            ]),
        ]));
        
        $collection->add(new Column([
            'id'       => 'stock',
            'caption'  => $this->trans('common.label.stock'),
            'editable' => true,
            'filter'   => new Filter([
                'type' => Filter::FILTER_BETWEEN,
            ]),
        ]));
        
        $collection->add(new Column([
            'id'       => 'weight',
            'caption'  => $this->trans('common.label.dimension.weight'),
            'editable' => true,
            'filter'   => new Filter([
                'type' => Filter::FILTER_BETWEEN,
            ]),
        ]));
    }
{@inheritdoc}