# 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

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/events/onrowcreated.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
