kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
558 stars 302 forks source link

getSelectedRows not work on insidegrid over expandcolumn #1063

Open mavs1971 opened 1 year ago

mavs1971 commented 1 year ago

Prerequisites

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

Operating System

Libraries

Isolating the problem