I'm exploring jqGrid
in my journey of learning Javascript and jQuery and I manged to put a checkbox
in a grid cell, awesome!
Here's what I have:
$("#myTable").jqGrid({
colModel:[
name:'cb', index:'cb', width:40, sorttype:"text", align:"center",
edittype:"checkbox", editoptions:{value:"Yes:No"}, formatter: "checkbox",
formatoptions: {disabled : false}},
other stuff...
]
When a checkbox is clicked, how do I catch the event and determine the corresponding row data?
Also, when I click the checkbox is the underlying data on the client side updated (does the cb field switch "Yes"/"No")? How do I achieve this?