angular-ui / ui-grid

UI Grid: an Angular Data Grid
http://ui-grid.info
MIT License
5.39k stars 2.47k forks source link

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

Open ptitdam2001 opened 5 years ago

ptitdam2001 commented 5 years ago

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]()

anuj1939 commented 5 years ago

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

ptitdam2001 commented 5 years ago

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 commented 5 years ago

i am facing same problem.

rashmipallam commented 5 years ago

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 commented 5 years ago

@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.

saghishiri commented 4 years ago

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

SanJagDar commented 4 years ago

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)