xiaochong / zkui

Grails ZK UI Plugin
http://grails.org/plugin/zkui
GNU Lesser General Public License v3.0
24 stars 8 forks source link

Column sort not an issue #121

Open jcelestin opened 10 years ago

jcelestin commented 10 years ago

When you click on a column sort, the sort refers to that column in the ZK framework. This works just fine. However, the generate Grails List composer reverts the sort to "id" in the redraw() function See below: def roleInstanceList = EAIRole.createCriteria().list(offset: offset, max: max) { order('id','desc') if (keywordBox){ ilike('name',"%"+keywordBox.value+"%") } } Grails uses the "order ('id','desc') " to sort the list based on the "id" column. Is there another way to capture ZK sort event and use that in the redraw() function? Thanks