Article Details
Id:18508
Product:finPOWER Connect
Type:FIX
Version:3.04.02
Opened:20/08/2021
Closed:02/09/2021
Released:02/12/2021
Job: J027259

HTML Widgets; widget.UI.Grid; GetSelectedRowIndexes does not work as expected if grid sorted

The GetSelectedRowIndexes method of the widget.UI.Grid control was not working as expected if the grid had any columns sorted.

widget.UI.Grid.GetSelectedRowIndexes() was returning the correct indexes for selected rows but NOT if there were no selected rows and the "defaultActiveRow" parameter was true. In this case, it would return the index (i.e., the grid row's index) rather than the listIndex (i.e., the index of the item in the underlying collection).

None of our system-supplied HTML Widgets used this functionality with sortable grids and so were not affected.