Reordering datatable columns with drag and drop has been a popular feature request from PrimeFaces Community with more than 70 votes. With this motivation, we’ve implemented this request targeting the upcoming 3.2 release.
And here is a photo from our design process we’d like to share all the math. Well, of course you don’t need to care about this, just set draggableColumns attribute to true and that’s it. Client side changes are synced with server side component state under the hood and “columnReorder” ajax behavior is provided for optional use to implement further customizations. So once again, we are following our “Hide Complexity, Keep Flexibility” goal.
Check out PrimeFaces 3.2 Labs to take a look at this new feature!