Title: getSelected on datagrid always returns first row Post by: Ellipsis on February 26, 2013, 06:00:36 AM Have no fiddle, but it seems that the getselected method always returns a row.
Title: Re: getSelected on datagrid always returns first row Post by: stworthy on February 26, 2013, 06:04:53 AM It is not the bug. The 'getSelected' method only return the first selected row. To get all the selected rows, call 'getSelections' method instead.
Title: Re: getSelected on datagrid always returns first row Post by: Ellipsis on February 26, 2013, 06:39:26 AM My mistake, the get selections always returns a row.
Title: Re: getSelected on datagrid always returns first row Post by: stworthy on February 26, 2013, 07:10:01 AM Here is the example http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem=DataGrid%20Selection. It works fine. The 'getSelections' method return all the selected rows.
Title: Re: getSelected on datagrid always returns first row Post by: Ellipsis on February 26, 2013, 08:19:23 AM Strange, I had multiple test always returning a row. I"ll do more tests.
|