ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

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

Open ptitdam2001 opened this issue 6 years ago • 7 comments

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 avatar Feb 04 '19 14:02 ptitdam2001

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

anuj1939 avatar Feb 05 '19 08:02 anuj1939

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

ptitdam2001 avatar Feb 05 '19 10:02 ptitdam2001

i am facing same problem.

passivereferral avatar Feb 05 '19 10:02 passivereferral

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.

rashmipallam avatar Feb 06 '19 03:02 rashmipallam

@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 avatar Feb 06 '19 21:02 mportuga

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

saghishiri avatar Oct 30 '19 13:10 saghishiri

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)

SanJagDar avatar Nov 13 '19 06:11 SanJagDar