Advertisement
Guest User

Untitled

a guest
Mar 19th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function grid_onload_sub(ids)
  2.     {
  3.         if(ids.rows)
  4.         {
  5.             jQuery.each(ids.rows,function(i)
  6.             {
  7.                 // if clientId between 1 & 5, format cell. see 'aria-describedby=list1_client_id' is 'gridid_colname' convention to identify cell.
  8.                 if (parseInt(this.already_invoiced) + parseInt(this.quantity) > parseInt(this.received_quantity))
  9.                 {
  10.                   alert(this.already_invoiced);
  11.                     // highlight cell
  12.                     jQuery('#edit_line_invoice tr.jqgrow:eq('+i+')').css('background-image','inherit');
  13.                     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
  14.  
  15.                 }
  16.             });
  17.         }
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement