public function getColumnNumbers($dataContainer)
    {
        if ($dataContainer->activeRecord) {
            $columns = $dataContainer->activeRecord->columns;
        } else {
            $columns = Bootstrap::getConfigVar('grid-editor.columns');
        }

        $values = range(1, $columns);

        return $values;
    }
public function getColumnNumbers($dataContainer)
    {
        if ($dataContainer->activeRecord) {
            $columns = $dataContainer->activeRecord->columns;
        } else {
            $columns = Bootstrap::getConfigVar('grid-editor.columns');
        }

        $values = range(1, $columns);

        return $values;
    }
public function getColumnNumbers ( $ dataContainer ) { if ( $ dataContainer -> activeRecord ) { $ columns = $ dataContainer -> activeRecord -> columns ; } else { $ columns = Bootstrap :: getConfigVar ( 'grid-editor.columns' ) ; } $ values = range ( 1 , $ columns ) ; return $ values ; }
Get column numbers.

@param \DataContainer $dataContainer Data container driver.

@return array
Get column numbers .