Skip to content

v4.7.0 : TypeError: row.setSelected is not a function #6928

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

Open
ptitdam2001 opened this issue Feb 4, 2019 · 7 comments · Fixed by #6932
Open

v4.7.0 : TypeError: row.setSelected is not a function #6928

ptitdam2001 opened this issue Feb 4, 2019 · 7 comments · Fixed by #6932

Comments

@ptitdam2001
Copy link

ptitdam2001 commented Feb 4, 2019

The latest version makes an error with gripApi.selection

angular.js:14996 TypeError: row.setSelected is not a function
    at Object.toggleRowSelection (ui-grid.js:247923)
    at Grid.selectRow (ui-grid.js:247584)
    at Object.selectRow (ui-grid.js:288012)
    at eval (app.js:26)
    at angular.js:20887
    at completeOutstandingRequest (angular.js:6479)
    at angular.js:6757

The bug is visible inside the documentation :
http://ui-grid.info/docs/#!/!/tutorial/Tutorial:%20210%20Selection

@ptitdam2001 ptitdam2001 changed the title TypeError: row.setSelected is not a function v4.7.0 : TypeError: row.setSelected is not a function Feb 4, 2019
@anuj1939
Copy link

anuj1939 commented Feb 5, 2019

TypeError: t.setSelected is not a function that error upcoming when select the selection bar in ui grid.
pls check.

@ptitdam2001
Copy link
Author

I have the problem on my project but it is available onto the tutorial (screenshot below)

capture du 2019-02-05 11-33-23

that error is upcoming when I click on one selection row

@passivereferral
Copy link

i am facing same problem.

@rashmipallam
Copy link

Same problem here. Please update here if any fix available.
Is there a way to uninstall this latest version and to revert to a stable version.

@mportuga
Copy link
Member

mportuga commented Feb 6, 2019

@rashmipallam The simplest way is to just change your version number in package.json. I will take a look at this as soon as I can.

@mportuga mportuga self-assigned this Feb 6, 2019
mportuga pushed a commit that referenced this issue Feb 7, 2019
This should both fix the size of the ui-grid.js file and the broken selection feature.

fix #6927, fix #6928
mportuga pushed a commit that referenced this issue Feb 7, 2019
This should both fix the size of the ui-grid.js file and the broken selection feature.

fix #6927, fix #6928
@saghishiri
Copy link

saghishiri commented Oct 30, 2019

I'm using ui grid version 4.8.1 but am still facing the same problem.
The grid is working correctly but sometimes this error appears:
row.selected is not a function

@mportuga mportuga reopened this Nov 6, 2019
@SanJagDar
Copy link

SanJagDar commented Nov 13, 2019

I am facing this issue with ui-grid v4.8.1 and AngularJS 1.7.0.

For a single row selection i get:
angular.js:14996 TypeError: t.setSelected is not a function
at Object.toggleRowSelection (ui-grid.min.js:7)
at b.o [as selectButtonClick] (ui-grid.min.js:7)
at fn (eval at compile (angular.js:15847), :2:313)
at e (angular.js:28064)

For select all rows i get:
angular.js:14996 TypeError: e.setSelected is not a function
at ui-grid.min.js:7
at Array.forEach ()
at e.selectAllVisibleRows (ui-grid.min.js:7)
at Object.selectAllVisibleRows (ui-grid.core.min.js:7)
at b.t.headerButtonClick (ui-grid.min.js:7)
at fn (eval at compile (angular.js:15847), :2:249)
at e (angular.js:28064)

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

Successfully merging a pull request may close this issue.

7 participants