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

getSelectedRows not work on insidegrid over expandcolumn

Open mavs1971 opened this issue 1 year ago • 0 comments

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

  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
  • [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.

mavs1971 avatar Apr 12 '23 05:04 mavs1971