Skip to content
Advertisement

To uncheck all checkboxes of an column in jqxGrid

I have small table built using jqxGrid. The 1st column contains checkboxes like below:

enter image description here

Expected result:

  1. On click of Uncheck All, need all these check-boxes to be un-checked like this:

enter image description here

  1. On click of remove need to get data of checkbox selected rows.

HTML:

JavaScript

Remove

JS:

JavaScript

Have surfed lot and the documentation too but no use. Couldn’t able to append fiddle link, So pasted the fiddle URL as code:

JavaScript

Advertisement

Answer

First you have to take your unselect click event in scope of of jQuery document due to you local scope of dataset.

JavaScript

Then on click of that button you have to update that local dataset from which you are adding flags for checkboxes & lastly have to update source in jqxGrid that you have taken.

JavaScript

I haven’t fully gone through API for JQXWiget but there can be a method to update local dataset please follow the below link,

  1. https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm#demos/jqxgrid/checkboxcolumn.htm
Advertisement