EasyUI Forum
May 04, 2024, 03:10:07 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 | help with a checkbox customizable in a column header  (Read 8549 times)
ryupanqui
Newbie
*
Posts: 44


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



Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 15, 2015, 07:00:01 PM »

Please try this updated example http://jsfiddle.net/2pLdvxnb/2/
Logged
ryupanqui
Newbie
*
Posts: 44


View Profile Email
« Reply #2 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,
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 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/
Logged
ryupanqui
Newbie
*
Posts: 44


View Profile Email
« Reply #4 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.
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!