Copy link to clipboard
Copied
I am working on a prototype script that displays a multi-column list box of items with headers. I would like to implement a sort by clicking on the header that I want to sort on. I have the sort code developed but I am trying to figure out a good way to detect a column click on the header so I can implement the sort. Any suggestions would be appreciated. Here is a screenshot of my (rough) dialog box. Thank you very much. -Rick
Copy link to clipboard
Copied
This is a ScriptUI window with a listbox with column titles, correct? If that's the case you're out of luck: the column titles aren't sensitive to onClick or onChange. You might define an event listener that determines where on the window you click and deduct which column that must be. It seems easier simply to add a field where the user enters the number of the column to sort on.
Peter
Copy link to clipboard
Copied
Hi Peter, Yes this is a ScriptUI window with a listbox with column titles. Thanks for the suggestion. -Rick
Copy link to clipboard
Copied
Hi Rick,
I have the same problem now - I like to sort a multi column listbox and I found your question. Did you find a solution or do you have any ideas or tipps?
ThanksKlaus
Copy link to clipboard
Copied
Hi Klaus,
No, I didn't pursue it any further. I am sorry about that.
Rick