Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function grid_onload_sub(ids)
- {
- if(ids.rows)
- {
- jQuery.each(ids.rows,function(i)
- {
- // if clientId between 1 & 5, format cell. see 'aria-describedby=list1_client_id' is 'gridid_colname' convention to identify cell.
- if (parseInt(this.already_invoiced) + parseInt(this.quantity) > parseInt(this.received_quantity))
- {
- alert(this.already_invoiced);
- // highlight cell
- jQuery('#edit_line_invoice tr.jqgrow:eq('+i+')').css('background-image','inherit');
- jQuery('#edit_line_invoice tr.jqgrow:eq('+i+') td[aria-describedby=edit_line_invoice_quantity]').css('background','inherit').css({'background-color':'silver', 'color':'black'}); //red
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement