Hi,
I have a requirement that i need to add a checkbox column with “Check All” option.So When i check the checkbox on the header it should select all the rows in that column.And i want to set each row’s check box with different value(not boolean) may be a string.When i select any checkbox and push a button some action needs to takes place like just an alert with the checkbox value. How would i achieve that?
i have created the grid like the following..
var columns = [{‘text’:”, ‘datafield’:’checkboxfield’,’columntype’: ‘checkbox’,’sortable’:’false’, ‘width’:’45px;’},{‘text’:’Notes’, ‘datafield’:’NoteInformation’, ‘width’:’55px;’},{‘text’:’Admit Date’,’datafield’:’admit_date’, ‘cellsformat’: ‘MM/dd/yyyy’, ‘width’:’90px;’}];
var source =
{
datatype: “json”,
datafields: [
{ name :’checkboxfield’,type:’string’ },
{ name :’NoteInformation’,type:’string’ }
],
localdata: data
};
var dataAdapter = new $.jqx.dataAdapter(source);
$(“#Nicujqxgrid”).jqxGrid(
{
width: 1440,
height:500,
source: dataAdapter,
sortable: true,
pageable: true,
pagesize: 25,
pagesizeoptions: [’25’, ’50’, ’75’, ‘100’],
columnsresize: true,
altrows: true,
columns: columns
});