Results 1 to 3 of 3

Thread: Grid Section - Sort on Multiple Columns

  1. #1
    Senior Member
    Join Date
    Jan 2016
    Posts
    160

    Grid Section - Sort on Multiple Columns

    Is it possible to sort on multiple columns within a grid section. I am using the oGrid.sort(0,-1) to do so on one column.

  2. #2
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,841
    Hi RD,

    When sorting a Grid Section, an automatically built index tag is used to sort the data based on a single column. The grid.sort() method does not handle multiple columns, but you could build your own index tag on the order you want with multiple columns and set order to that tag then refresh() the Grid Section.

    When using the column-header-click sorting, the Section Sort delegate is called and passed the column number and the direction (1 or -1). This allows for a customized sort to be coded, e.g. using the set order and refresh() as above.

    Regards,

    Yvonne

  3. #3
    Senior Member
    Join Date
    Jan 2016
    Posts
    160
    OK, let me give it a try. Thanks.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us