Yii Framework Forum

Kartik Gridview Width

(DBCreator) #1

Right now, by default, the Gridview take up 100% of the width, is there a way to not consume 100% width, but rather auto?

(Schanz15) #2

You can always extend the corresponding asset (GridViewAsset) and supply/override CSS definitions. You also need to set your new Asset in the classMap of Yii like so: Yii::$classMap[\yii\grid\GridViewAsset::class] = \ns\to\your\GridViewAsset::class

(DBCreator) #3

Way over my head, but I will now that I have some key terms I will do some research on the subject.