Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Checkbox doesn't select row (model) #5

Open
AgDude opened this issue Nov 17, 2015 · 2 comments
Open

Checkbox doesn't select row (model) #5

AgDude opened this issue Nov 17, 2015 · 2 comments

Comments

@AgDude
Copy link
Contributor

AgDude commented Nov 17, 2015

From @LeonanCarvalho on June 25, 2015 18:52

Until 3.0 isn't stable i'm using ngGrid yet and I realize if I check a grid value using checkbox it's not selected in rows model.

<div class="ngSelectionCell"><input tabindex="-1" class="ngSelectionCheckbox" type="checkbox" ng-checked="row.selected"/></div>

We must use ng-model with ng-selected to be possible select using row click and checkbox click.

<div class="ngSelectionCell"><input tabindex="-1" class="ngSelectionCheckbox" type="checkbox" ng-checked="row.selected" ng-model="row.selected"/></div>

Looking for confirmation.

Copied from original issue: angular-ui/ui-grid#3869

@AgDude
Copy link
Contributor Author

AgDude commented Nov 17, 2015

From @c0bra on June 26, 2015 19:51

If it works for you then I'd say you're good. 2.x isn't likely to change at all.

@AgDude
Copy link
Contributor Author

AgDude commented Nov 17, 2015

From @LeonanCarvalho on June 26, 2015 20:54

Recently I had an experience where the user can select at ngRow and the checkbox by clicking exactly on the checkbox, as the event does not spread to the ngRow, then went in search of the cause and this was because by clicking the checkbox column nothing happened .

I need a confirmation if the use of ng-checked with the ng-model would redundant. My opinion it that ng-model is the best of the options.

Anyway , My intention is to just help others who, like me, still don't trusting the 3.x yet.

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

No branches or pull requests

1 participant