1)I have following checkbox code to get an HTML check box in the list grid. This redenders the checkbox properly .But now how to retrieve this checkbox value i.e. true/false. here if i try to get the value then i get the html code of checkbox.
2) Also if there is any other approach to render checkbox and retrieve its value is appreciated.
Note: With the examples given in tutorial document,when the checkbox is not selected then the cell looks blank and user can not identify whether any checkbox exist in the cell.
Code:
isc.ListGrid.create({ ID: "countryList", fields:[ {name:"selection", type:"boolean", value:false, formatCellValue: function (value, record, rowNum, colNum, grid) { if(value) return "<input type=\"checkbox\" checked/>"; else return "<input type=\"checkbox\"/>"; } } ]
2) Also if there is any other approach to render checkbox and retrieve its value is appreciated.
Note: With the examples given in tutorial document,when the checkbox is not selected then the cell looks blank and user can not identify whether any checkbox exist in the cell.
Comment