Author Topic: Only make checkbox header editable.  (Read 1691 times)

kiwon34

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 52
    • View Profile
Only make checkbox header editable.
« on: January 29, 2020, 01:23:01 pm »
Hello param,

I have a column of checkbox. And the checkbox is shown in header.
The entire column is not editable by default. But I only want the header checkbox to be able to check.
And when header is checked, I want to get callback by an event, so I could update certain data.

Thank you.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Only make checkbox header editable.
« Reply #1 on: January 29, 2020, 03:13:19 pm »
Whole checkbox column can be made uneditable by adding editable: false to the column.

And header checkbox check can be intercepted by listening to beforeCheck event

Code: [Select]
beforeCheck: function(evt, ui){
debugger;
},