Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid checkbox selection (css) not works correctly #917

Closed
zeusworkspace opened this issue Jul 29, 2019 · 3 comments
Closed

Grid checkbox selection (css) not works correctly #917

zeusworkspace opened this issue Jul 29, 2019 · 3 comments

Comments

@zeusworkspace
Copy link

yiisoft/yii2: 2.0.23
kartik-v/yii2-grid: v3.3.2

ezgif-4-f65372e5ca09

PS: The problem happens on first render, after filter or order grid selection works correctly.

@kartik-v
Copy link
Owner

kartik-v commented Aug 1, 2019

It seems you are talking about the highlight. You seem to have other CSS on the page applied to the rows which maybe over riding the background styles. Cross check and override this CSS behavior and change the checkbox column row highlight class property to fit your use case.

@kartik-v kartik-v closed this as completed Aug 1, 2019
@zeusworkspace
Copy link
Author

@kartik-v I checked and my css is ok. The problem occur because some event is removing the class 'selected-row' from previous selected row, but it problem is fixed after applyFilter is applied on grid probably because event is unbinding. It may be an update on Yii2 that needs to be adjusted in this widget. Posted here yiisoft/yii2#17466

@kartik-v
Copy link
Owner

kartik-v commented Aug 1, 2019

Resolved with the above enhancement to accomodate the changes in yii2 core.

You can cross check this in the updated grid demo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants