Hi,
Long story short, when a user clicks on a row, i want it to tick the checkbox (if invoiced = 0) of that row and highlight it.
I have done this (fairly simple/standard function), however, when the user clicks a certain cell, i dont want it to check/highlight the row i want a message to appear instead.
At the moment, when the user clicks on a cell it will check and highlight the row.
How do i only check/highlight the row when they click o na cell not in the list?
onClickCell:function(index,field,value){
//alert(index);// index of row clicked
//alert(field);// db field name eg. date_edited
//alert(value);// value of cell/db field eg. 2018-01-01
var row = $('#dgPOs').datagrid('getRow', index); // Gets row details from datagrid
// will unselect/uncheck line if it has already been invoiced
if (row.invoiced == 1){
$(this).datagrid('unselectRow',index);
}
// Switch statement to show msgbox depending on which cell is clicked
switch(field) {
case "notes":
alert(value);
break;
default:
$('#dgPOs').datagrid('highlightRow', index);
//$('#dgPOs').datagrid('selectRow', index);
//$('#dgPOs').datagrid('checkRow', index);
};
},