Brilliant, thanks... My revised code is much more concise and no longer depends on beforeCheck event:
check: function( event, ui ) {
var affected = ui.getCascadeList();
$.each(affected, function(di,dq) {
console.log(dq,dq.newRow.pq_tree_cb);
if (dq.newRow.pq_tree_cb==false) {
thegridnav.removeClass({rowIndx: dq.rowIndx, dataIndx: 'name', cls: 'selected' });
}
if (dq.newRow.pq_tree_cb==true) {
thegridnav.addClass({rowIndx: dq.rowIndx, dataIndx: 'name', cls: 'selected' });
}
})
},
If there's an improvement for the above, please let me know... My next step is to Update a parallel grid with the same structure. If you have a quick tip on how to Refresh the dataModel.data, I'd appreciate it. My current code has a problem when it is called a second time with a different dataset.