Author Topic: Click event of Header checkbox  (Read 4372 times)

JUNZHONG

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 16
    • View Profile
Click event of Header checkbox
« on: September 09, 2016, 08:45:40 pm »
Hi,

I have a paramquery grid with pagination, a check box column and filters for the columns. I want to be able to catch the  click event for all the check boxes including the header checkbox. I was able to get the click event for all the checkboxes by adding cellClick: function(evt, ui){} for the grid and finding the right cell but this does not catch the header checkbox.
I have tried cellClick, rowSelect, rowUnselect, onClick and onchange, but none of them give me the result I am looking for.

I would greatly appreciate if someone can suggest how to get the header checkbox click event, also suggest if there is a better way to get the checkbox click event as well.

Thank you.






Mohammed Nayeem

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Click event of Header checkbox
« Reply #1 on: December 18, 2018, 08:27:35 pm »
use selectChange event

VigneshVpn

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Click event of Header checkbox
« Reply #2 on: December 20, 2018, 07:05:48 pm »
You can handle the click events for checkbox using check, beforeunCheck and unCheck events.

Refer this example https://paramquery.com/demos



Thanks,
VigneshPradeepan.