Article Details
Id: | 17460 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 3.03.04 |
Opened: | 07/10/2020 |
Closed: | 07/10/2020 |
Released: | 02/12/2020 |
Job: | J025236 |
HTML Widgets; widget.UI.Grid; Data binding enhancements
The widget.UI.Grid's InitialiseRow method's event parameter now has an additional 'grid' property which references the parent grid.
Unlike many other controls, the Grid's event handlers do not have a 'self' parameter.
A GetVirtualClass method has also been added. This returns the class that the Grid has been bound to via its VirtualDataRefresh method.
These additions are particularly useful for dynamically created grid which can now access the collection they have been bound to, e.g.:
function grid_InitialiseRow(e) {
var item = e.grid.GetVirtualClass()[e.row.listIndex];
e.row.AutoBind(item);
}