Hi Abu,
Conditional formatting disappears when using footer summary e.g.
var opts = {
// e.g. to show footer summary
'loadComplete': function ()
{
var grid = $("#hrs");
sumqty = grid.jqGrid('getCol','qty',false,'sum');
grid.jqGrid('footerData','set', {qty:sumqty});
}
};
What can we do about it ?
Tomasz
1 Answers
You can use alternate way of loadcomplete event.
Please refer demos/editing/custom-event.php
In php, you can connect onload event. (refer demo/editing/custom-event)
$e["js_on_load_complete"] = "do_onload";
$grid->set_events($e);
Then can use following JS code to select rows.
<script>
function do_onload(id)
{
var grid = $("#hrs");
sumqty = grid.jqGrid('getCol','qty',false,'sum');
grid.jqGrid('footerData','set', {qty:sumqty});
}
</script>
Your Answer