Change the word Ascending and Descending in DataTable Sort

Post Reply
renan.zambrin
Posts: 1
Joined: 09 Dec 2016, 12:44

16 Jan 2017, 12:51

When the DataTable and the screen size is reduced the sorting options go to a combo box with "column name ascending" and "column name descending".
How do I change the word Ascending and Descending in this combo box? I want to translate it.

User avatar
aragorn
Posts: 3215
Joined: 29 Jun 2013, 12:38

16 Jan 2017, 23:12

You can change value of the following properties in your messages.properties file;
primefaces.datatable.SORT_ASC = Ascending
primefaces.datatable.SORT_DESC = Descending

trumpP
Posts: 20
Joined: 11 Aug 2018, 11:20
Contact:

13 Sep 2018, 06:43

You can do it while initializing:
jQuery(function ($) {
$(".datatable").dataTable({
"paging": false,
"searching": false,
"info": false,
"orderCellsTop": true,
aoColumnDefs: [
{
orderSequence: ["desc", "asc"],
aTargets: ['_all']
}
]
});
});

User avatar
aragorn
Posts: 3215
Joined: 29 Jun 2013, 12:38

14 Sep 2018, 13:15

Hi @trumpP, This forum is for Apollo-PrimeFaces. Maybe, you can use PrimeUI or Jquery DataTable.

Post Reply

Return to “Apollo - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest