EasyUI Forum
September 14, 2025, 04:10:04 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: Datagrid getChanges on checkbox not working  (Read 9611 times)
rockccf
Newbie
*
Posts: 8


Ignorance is bliss.


View Profile
« 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


View Profile Email
« 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.


View Profile
« 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


View Profile Email
« 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  
 
Jump to:  

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