Skip to content
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

getSelectedRows not work on insidegrid over expandcolumn #1063

Open
9 tasks done
mavs1971 opened this issue Apr 12, 2023 · 0 comments
Open
9 tasks done

getSelectedRows not work on insidegrid over expandcolumn #1063

mavs1971 opened this issue Apr 12, 2023 · 0 comments

Comments

@mavs1971
Copy link

mavs1971 commented Apr 12, 2023

Prerequisites

  • [ x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • The issue still exists against the latest master branch of yii2-grid.
  • This is not an usage question. I confirm having gone through and read the documentation and demos.
  • 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.
  • I have included a failing test as a pull request (Optional).

Steps to reproduce the issue

  1. gridview expand column
  2. inside expand other gridview with checkcolumn
  3. 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...

imagen

I was expecting...

Environment

Browsers

  • [x ] Google Chrome
  • [ x] Mozilla Firefox
  • [ x] Internet Explorer
  • [n/a ] Safari

Operating System

  • [ x] Windows
  • Mac OS X
  • Linux
  • Mobile

Libraries

  • jQuery version: v3.6.3
  • yii2-grid version:3.5.1

Isolating the problem

  • This bug happens on the demos page
  • The bug happens consistently across all tested browsers
  • [ x] This bug happens when using yii2-grid without other plugins.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant