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
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