This event allows you to inject HTML into the Grid part as the Grid is being rendered on the server. This event fires when each existing row (as opposed to new record rows) is rendered.
Allows you to inject custom HTML into the Grid when a row for existing data in the Grid-Part is rendered.
The following variables are available to you in the event:
The grid component definition
You can put any data in this variable that you want to pass to other events. e.g. e.rtc.mydata = 'value1'
The total number of columns in the Grid <table>, including any system columns.
The number of system columns in the Grid <table>. System columns are used for objects such as system buttons, row expander icon, etc.
The row number of the row being rendered
HTML for the row being rendered. (Your event handler can modify the HTML)
Data for the current row. For example, to get the value of the 'lastname' field: e.rowData.data("lastname")
Your event must set these properties:
The HTML markup that you want to add before the Detail View is rendered. Must be wrapped in <td>...</td> tags.
The HTML markup that you want to add after the Detail View is rendered. Must be wrapped in <td>...</td> tags.
You can also set state variables in this event. The value of any state variables will be available in all subsequent ajax callbacks (in the e.__si2 object).
To set a state variable:
e._state.myvar1 = "value1" e._state.myvar2 = "value2"