Article Details
Id: | 15980 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 3.01.11 |
Opened: | 28/03/2019 |
Closed: | 28/03/2019 |
Released: | 03/04/2019 |
Job: | J022096 |
HTML Widgets; Grids; Added auto-binding functionality
The ability to auto-bind cell values from an object has been added to grids.
The example below shows how to use the new AutoBind method and also demonstrates setting cells to custom values after auto-binding.
function gridBreakdown_InitialiseRow(e) {
var item = mResultsBreakdown[e.row.listIndex];
// Auto-populate cell values from object
e.row.AutoBind(item);
// Other values
if (item.Name == "") e.row.cells.Name = "(not entered)"
}