Default sort order on a dynamic column in a data table

UI Components for JSF
Post Reply
hiestand53
Posts: 2
Joined: 10 Oct 2016, 19:54

10 Oct 2016, 20:09

Hello,

I'm curious if there is a way to set the default sort order on a dynamic column for a data table.

For example, in your Cars test web app, using the p:columns, I want to be able to have the Year column sort by newest to oldest cars on first click rather than oldest to newest, while keeping ID and Brand sorted in ascending order.

Any help on this would be appreciated.

Thank you! :D
PrimeFaces v6.0
Mojarra v2.2.7
GlashFish Server v4.1

hiestand53
Posts: 2
Joined: 10 Oct 2016, 19:54

01 Nov 2016, 21:20

Sorry guys, I forgot to share our set up:

PrimeFaces version 6.0
JSF Mojarra version 2.2.7
GlashFish Server 4.1
PrimeFaces v6.0
Mojarra v2.2.7
GlashFish Server v4.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 6 guests