EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 14, 2025, 01:53:31 AM
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
>
EasyUI for jQuery
>
Datagrid getChanges on checkbox not working
Pages: [
1
]
« previous
next »
Print
Author
Topic: Datagrid getChanges on checkbox not working (Read 9603 times)
rockccf
Newbie
Posts: 8
Ignorance is bliss.
Datagrid getChanges on checkbox not working
«
on:
July 15, 2015, 11:14:38 PM »
Hi,
The datagrid getChanges will not return anything even I uncheck a checked checkbox or check a unchecked checkbox.
I tried putting a hidden field and changed the hidden value while checking/unchecking the checkbox, yes the hidden value is changed but getChanges won't detect changes either.
<th field="supplierNegoFlag" hidden="true"></th>
<th field="ck" checkbox="true"></th>
<th field="savedPrice" width="100" editor="{type:'numberbox',options:{precision:3,validType:'minValue[0]'}}" data-options="formatter:formatDecimal"><a title="Supplier Revise Price" class="easyui-tooltip">Revise Price (RM)</a></th>
How to resolve that?
Thanks.
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Datagrid getChanges on checkbox not working
«
Reply #1 on:
July 16, 2015, 12:45:28 AM »
To get the rows where the checkbox has been checked, please call 'getChecked' method instead.
Logged
rockccf
Newbie
Posts: 8
Ignorance is bliss.
Re: Datagrid getChanges on checkbox not working
«
Reply #2 on:
July 19, 2015, 11:57:55 PM »
Hi,
I like to know that which row's checkbox is changed (uncheck to check, check to uncheck) by calling method getChanges and it's not working.
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Datagrid getChanges on checkbox not working
«
Reply #3 on:
July 20, 2015, 12:27:52 AM »
No, you can not do that. Checking a row just doing a selecting action, this does not modify the row data. Please use to set the 'checkbox' editor instead.
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...