Quantcast
Channel: How to change background of 1 row in Yii2 Gridview - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by DrBorrow for How to change background of 1 row in Yii2 Gridview

Thanks for posting your answer Paramone. Worked great. Here is my implementation:<?= GridView::widget(['dataProvider' => $dataProvider,'rowOptions' => function ($model) { if ($model->name...

View Article



Answer by Paramone for How to change background of 1 row in Yii2 Gridview

Got it!Yii2 : Adding Classes to Rows in the GridView (YouTube)Yii2 Gridview row by row css expressionSimply add rowOptions to your gridview. <?= GridView::widget(['id' =>...

View Article

Image may be NSFW.
Clik here to view.

How to change background of 1 row in Yii2 Gridview

I'm working with Yii 2, and it's grid view to show information.Now, my problem is that whenever a user scans two identical serial numbers and/or mac addresses, it should highlight the row (change color...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images