EasyUI Forum
April 27, 2024, 12:47:12 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: getSelected on datagrid always returns first row  (Read 10912 times)
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« on: February 26, 2013, 06:00:36 AM »

Have no fiddle, but it seems that the getselected method always returns a row.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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.
Logged
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« Reply #2 on: February 26, 2013, 06:39:26 AM »

My mistake, the get selections always returns a row.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 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.
Logged
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« Reply #4 on: February 26, 2013, 08:19:23 AM »

Strange, I had multiple test always returning a row. I"ll do more tests.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!