Skip to main content
Inspiring
October 18, 2019
Question

JavaScript - Multi column list view is not displaying in the correct order on Windows only

  • October 18, 2019
  • 1 reply
  • 424 views

I am using the multi-column list view (mclv) in a JavaScript dialog to display some records. Before I display the records in the grid I sort them based on a sequence field in each object of the array that populates the grid. On Mac, Acrobat displays the records in the correct order (the order in which they are in the JavaScript array) but on Windows the most recently added object to the array always displays at the top of the grid. I even tried cloning the array by sorting it, stringifying it, then parsing it back into a new JSON array and the result is the same. I know that the multi-column list view ("grid") is an undocumented feature but I'm hoping there is a way to control the display order on Windows.

 

Any suggestions?

This topic has been closed for replies.

1 reply

Inspiring
October 18, 2019

It appears that on Windows, Acrobat automatically sorts the first column of a multi-column list view descending. Does anyone know a way to prevent this?