Quantcast

creating a sortable column

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

creating a sortable column

kumudu

Following is my one of domain class in the project


class UserInformation extends SystemUser {

    Organization organization
    Projects projects
    String toString(){return 'User Informaion of -' +name}

    static hasMany=[assets:AssetManagementDetails]
    static belongsTo = Organization

    static constraints={
        organization()
 
        assets(nullable: true)
        projects(nullable: true)

        }
}

when I run the project in its list.gsp organization column is not scaffold as a sortable column. It comes as follows.
                          <th>Organization</th>
Since i need it as sortable I made it as follows.
            <g:sortableColumn property="organization" title="Organization"/>

But then I run it doesn't work as sortable, when i click on the column heading, column items do not get sorted. other columns work fine.
can some one help me.

regards.
kumudu



Get your new Email address!
Grab the Email name you've always wanted before someone else does!
Loading...