Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery EasyUI DataGrid - Adding Checkboxes

jQuery EasyUI DataGrid - Adding Checkboxes

This example demonstrates how to place a checkbox column in a DataGrid. With the checkbox, users can select or deselect grid row data.

To add a checkbox column, we only need to add the checkbox property to a column and set it to true. The code is as follows:



    

        

            

                

                

                

                

                

                

                

            

        

    
Item IDProduct IDList PriceUnit CostAttributeStatus

The above code adds a column with the checkbox property, so it becomes a checkbox column. If the idField property is set, the DataGrid's selection will be preserved across different pages.

Download the jQuery EasyUI example

jeasyui-datagrid-datagrid10.zip