Skip to main content

onRowCreated

The are a couple of special objects you coul use in this event type:

  • eventArgs.details.row - this is the new row as a html element.
  • eventArgs.details.data- this is the record used for this row
  • eventArgs.details.index- this is the index of the row in the entire grid
   if(eventArgs.details.data.cordlnShippedQuantity >= eventArgs.details.data.cordlnOrderQuantity){
$(eventArgs.details.row).addClass("success");
}

if(eventArgs.details.data.cordlnOrderQuantity - eventArgs.details.data.cordlnShippedQuantity > eventArgs.details.data.cordlnStockQuantity){
$(eventArgs.details.row).addClass("warning");
}