JSAPI 4.x - Feature table widget sort by multiple columns

816
3
01-03-2022 11:34 PM
Status: Implemented
Labels (2)
Kishore
Occasional Contributor

ArcGIS JavaScript API 4.x Feature Table widget method sortColumn() allow sort the data based on single field. please provide a similar method which will allow users/developers  to choose/ specify multiple columns to apply sorting on the feature table.

3 Comments
UndralBatsukh

Hi there, 

As you mentioned this cannot be done at the moment. We have plans to add support for this. However, I do not have a timeline for this. I will update you once this behavior is supported. 

-Undral

Justin_Greco

This was added at 4.23

https://developers.arcgis.com/javascript/latest/4.23/#featuretable

 

  • Sort multiple fields by setting FeatureTable.multiSortEnabled to true. Setting the direction and new initialSortPriority properties provides control over what column gets prioritized over others when the table initially displays. If these combined properties are not set, the priority defaults to the most recently sorted column. The image below shows the second column, "Enrollment", having a higher sort priority than the "School Name".
BjornSvensson
Status changed to: Implemented

As mentioned above, this was implemented a part of 4.23 (March 2022).