yii2-grid
yii2-grid copied to clipboard
getSelectedRows not work on insidegrid over expandcolumn
Prerequisites
- [ x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- [x] The issue still exists against the latest
master
branch of yii2-grid. - [x] This is not an usage question. I confirm having gone through and read the documentation and demos.
- [x] This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
- [ x] I have attempted to find the simplest possible steps to reproduce the issue.
- [x] I have included a failing test as a pull request (Optional).
Steps to reproduce the issue
- gridview expand column
- inside expand other gridview with checkcolumn
- select check and ask for .yiiGridView('getSelectedRows')
Expected behavior and actual behavior
older versio of jquery : v2.1.4 work fine , returning keys selected. with new jquery v3.6.3 gets Uncaught TypeError: data is undefined on YiiGridView.js line 207.
it's happen when you use grid inside expandcolun and the grid has a checkbox, not worknig.
each grid inside the expand column has unique id. the code work fine with jquery 2.1.4 but with new version does not work. you can select the checkbox but it's not return selectecrows
When I follow those steps, I see...
I was expecting...
Environment
Browsers
- [x ] Google Chrome
- [ x] Mozilla Firefox
- [ x] Internet Explorer
- [n/a ] Safari
Operating System
- [ x] Windows
- [x] Mac OS X
- [x] Linux
- [x] Mobile
Libraries
- jQuery version: v3.6.3
- yii2-grid version:3.5.1
Isolating the problem
- [x] This bug happens on the demos page
- [x] The bug happens consistently across all tested browsers
- [ x] This bug happens when using yii2-grid without other plugins.