开发者

Richfaces Datatable - Sort specific column on load

Is it possible to sort a datatable by a specific column when it first loads? Or does it need to be done using the DAO? When I put on ORDER 开发者_开发问答BY in my SQL in my DAO, no data at all is returned in the datatable


Solved it used sortOrder="DESCENDING" or sortOrder="ASCENDING" on the column you wish to have sorted when datatable first loads


Just need to add this to options:

"aaSorting": [[ 5, "desc" ]]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜