EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
April 26, 2024, 10:30:55 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
Bug Report
>
getSelected on datagrid always returns first row
Pages: [
1
]
« previous
next »
Print
Author
Topic: getSelected on datagrid always returns first row (Read 10909 times)
Ellipsis
Full Member
Posts: 113
getSelected on datagrid always returns first row
«
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
Re: getSelected on datagrid always returns first row
«
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
Re: getSelected on datagrid always returns first row
«
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
Re: getSelected on datagrid always returns first row
«
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
Re: getSelected on datagrid always returns first row
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...