In this article, allCodeAre taken from jquery easyui official http://www.jeasyui.com /. After being collected, paste it here. Used for memo.
1. Enable the check box in the DataGrid:
Source code:
< Table ID = "TT" Title = "Checkbox select" Class = "Easyui-DataGrid" Style = "Width: 700px; Height: 250px" URL = "Data/datagrid_data.json" Idfield = "Itemid" Pagination = "True" Iconcls = "Icon-save" > < Thead > < Tr > < Th Field = "Ck" Checkbox = "True" > </ Th > < Th Field = "Itemid" Width = "80" > Item ID </ Th > < Th Field = "Productid" Width = "120" > Product ID </ Th > < Th Field = "Listprice" Width = "80" Align = "Right" > List price </ Th > < Th Field = "Unitcost" Width = "80" Align = "Right" > Unit Cost </ Th > < Th Field = "Attr1" Width = "200" > Attribute </ Th > < Th Field = "Status" Width = "60" Align = "Center" > Stauts </ Th > </ Tr > </ Thead > </ Table >