If this has an obvious answer, i apologize in advance.
I am trying the sort functions for the listgrid. I would like them sorted alphabetically, but with for example the Swedish characters Å, Ä, Ö after Z. This is the way our user will expect it to be.
When i configure sort on the grid, they appear in the same spot as 'A'.
What is the supposed way to solve this?
EDIT: one more question regarding sort:
I have a 'master/detail' approach with a form where the users enter new records. When something is created with the datasource, items do not appear according to the listgrid sort configured, but at the end of the list.
I would like them sorted, and also the row selected in the grid. For this, i have solved this with a savedListener on the form:
It would be neat if new items were just inserted in the grid according to the sort, but am i doing this right or is there a better way?
Thanks.
I am trying the sort functions for the listgrid. I would like them sorted alphabetically, but with for example the Swedish characters Å, Ä, Ö after Z. This is the way our user will expect it to be.
When i configure sort on the grid, they appear in the same spot as 'A'.
What is the supposed way to solve this?
EDIT: one more question regarding sort:
I have a 'master/detail' approach with a form where the users enter new records. When something is created with the datasource, items do not appear according to the listgrid sort configured, but at the end of the list.
I would like them sorted, and also the row selected in the grid. For this, i have solved this with a savedListener on the form:
Code:
form.addSavedListener((records, newRecord, isDataDirty) -> { listGrid.sort(); listGrid.deselectAllRecords(); listGrid.selectRecord(records[0]); });
Thanks.
Comment