I have a jqxgrid containing checkboxes in 3 columns as “Read”,”ReadHistory”,”Write”
I want to enable Read when ReadHistory is enabled(on checking Readhistory Checkbox ,the Read checkbox should be checked at that very moment)
also the grid being created is allowing to add rows at runtime.
I did this using the below code in javascript:
{text: <js:string><fmt:message key="LBL_READ_HISTORY"/></js:string>, datafield:'readHistoryP', width:'100px', align:'center', editable:true,
initeditor:function(row, cellvalue, editor, celltext, pressedkey) {
if( $(this).attr("checked", true)){
document.getElementById('DatadefNewReadFlagID').checked = true;
}
}
},
After doing this as i click on ReadHistory,The Read checkbox is enabled but also the cell containing ReadHistory checkbox in that very row now displays html in background and the checkbox is vanished now. Please help me with the solution.