Results 1 to 7 of 7

Thread: Sorting A Grid Section

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

    Sorting A Grid Section

    I am trying to sort my grid section in descending order on column 0. below is the code I have tried. It seems like it should work. Does anyone see an obvious problem.

    oGrid = Lianja.get("rfrmain.RFRList").grid
    oGrid.sort(0,-1) //sorts grid in decending order by rfr no ---not working
    oGrid.refresh()

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

    Make sure the 'Sortable' attribute is checked (True) for the Grid Section (in the Details attributes).

    You won't need the refresh().

    Regards,

    Yvonne

  3. #3
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,841
    Also, to sort a Grid Section by clicking on a column header, see the video here.

  4. #4
    Senior Member
    Join Date
    Jan 2016
    Posts
    160
    Thank you. Is there a way to prevent deleted items from showing on a grid. If not, at least a way to indicate they are deleted.

  5. #5
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135
    If SET DELETED is ON, then records that have been marked for deletion are ’invisible’
    http://www.lianja.com/doc/index.php/SET_DELETED

  6. #6
    Senior Member
    Join Date
    Jan 2016
    Posts
    160
    Thank you. Do you know if there is a way to change the font size of a specific column in a grid section. I did not see an option in the Gridcolumn delegates.

  7. #7
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135
    I dont think you can set font size of specific grid column.

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