EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: ryupanqui on January 15, 2015, 10:02:53 AM



Title: Datagrid | help with a checkbox customizable in a column header
Post by: ryupanqui on January 15, 2015, 10:02:53 AM
Hi JEasyui Team,

I have a checkbox column as first column and i want to use a custom checkbox on header of the last column, but this checkbox is  unchecked or checked when all checkboxes of the first column are checked or unchecked.  how can i fix this issue?

http://jsfiddle.net/ryupanqui/2pLdvxnb/1/





Title: Re: Datagrid | help with a checkbox customizable in a column header
Post by: stworthy on January 15, 2015, 07:00:01 PM
Please try this updated example http://jsfiddle.net/2pLdvxnb/2/


Title: Re: Datagrid | help with a checkbox customizable in a column header
Post by: ryupanqui on January 16, 2015, 02:08:08 PM
Thanks for your reply, but i need that the checked operation in each column will be independent. In your example, if you check the first column, the third column also changes its checked value as the same of the first. In my case, each checked cell should be independent on its changes; it should be the same for the column.

Regards,


Title: Re: Datagrid | help with a checkbox customizable in a column header
Post by: stworthy on January 16, 2015, 06:16:20 PM
To make them independent, set 'selectOnCheck' property to false. Please refer to this updated example  http://jsfiddle.net/2pLdvxnb/3/


Title: Re: Datagrid | help with a checkbox customizable in a column header
Post by: ryupanqui on January 17, 2015, 10:16:28 AM
Thanks for your reply, another question more. I need put a checkbox in the header of the third column, only to check all or uncheck all checkboxes of that column. Is it possible?

regards.