onRowCreated

The event occurs when a grid control displays a row. RowCreated does not mean that a database record is created.

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");
   }

Last updated