Hello qingzhao12345,
Please, find below an example which shows the grid where checkboxes and rows have been selected.
// create jqxgrid.
$("#jqxgrid").jqxGrid(
{
width: 850,
height: 450,
source: dataAdapter,
sortable: true,
filterable: true,
ready: function()
{
// called when the Grid is loaded. Call methods or set properties here.
},
selectionmode: 'checkbox',
altrows: true,
ready: function () {
$("#jqxgrid").jqxGrid('selectallrows');
},
columns: [
{ text: 'Ship Name', datafield: 'ShipName', width: 250 },
{ text: 'Shipped Date', datafield: 'ShippedDate', width: 100, cellsformat: 'yyyy-MM-dd' },
{ text: 'Freight', datafield: 'Freight', width: 150, cellsformat: 'F2', cellsalign: 'right' },
{ text: 'Ship City', datafield: 'ShipCity', width: 150 },
{ text: 'Ship Country', datafield: 'ShipCountry'}
]
});
Best Regards,
Nadezhda
jQWidgets team
http://www.jqwidgets.com/