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

Row selection does not appear #29

Closed
amitkothari opened this issue Feb 8, 2016 · 3 comments
Closed

Row selection does not appear #29

amitkothari opened this issue Feb 8, 2016 · 3 comments

Comments

@amitkothari
Copy link

We have a grid with row selection enabled (enableRowSelection: true). When I use a custom rowTemplate with a draggable wrapper div, the selected row color doesn't change.

Looking at this issue - angular-ui/ui-grid#3013, it seems like I cannot change the levels of nesting of the divs. Is there a way to make the rows draggable but still keep the selection functionality as it is ?

@diegofesanto
Copy link

Try add this in your css file
.ui-grid-row.ui-grid-row-selected > [ui-grid-row] > [draggable] > .ui-grid-cell { background-color: #c9dde1; }

@amitkothari
Copy link
Author

Thanks @diegofesanto.

Not sure if it is a good idea to change angular-ui-grid css to make it work with the plugin (ui-grid-draggable-rows)

@diegofesanto
Copy link

I agree with you and I change my comment too. I move the code to my css file and I put after ui-grid-draggable-rows style

Thanks

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

No branches or pull requests

3 participants