EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: rockccf on July 15, 2015, 11:14:38 PM



Title: Datagrid getChanges on checkbox not working
Post by: rockccf 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.


Title: Re: Datagrid getChanges on checkbox not working
Post by: stworthy on July 16, 2015, 12:45:28 AM
To get the rows where the checkbox has been checked, please call 'getChecked' method instead.


Title: Re: Datagrid getChanges on checkbox not working
Post by: rockccf 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.


Title: Re: Datagrid getChanges on checkbox not working
Post by: stworthy 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.