Article Details
Id:15981
Product:finPOWER Connect
Type:NEW
Version:3.01.11
Opened:28/03/2019
Closed:28/03/2019
Released:03/04/2019
Job: J022097

HTML Widgets; Grids; Ability to easily sort and hide columns

The ability to sort grid colulmns by a JavaScript array of column keys (or, optionally, captions) has been added to grids.

The example below shows how to use the new SortColumnsByArray method.

// Specify a 'true' parameter to sort by caption rather than column key
gridBreakdown.SortColumnsByArray(["AccountId", "Name", "Balance Overdue"], true);

NOTE: The system-supplied Account Applications Breakdown HTML Widget has been updated to use this new method.