Is it possible to disable sorting on a paging grid?

Hi all,
Is it possible to disable sorting on a paging grid?
If yes, how can this be done....

OriginalPostID-105771

OriginalPostID-105771

  Discussion posts and replies are publicly visible

Parents
  • Ignore the new sort information thrown by the grid when user click on a field for sorting, and replace it with the default sort info that you already have in a variable. Following code could do the trick.

    load(
    local!sortInfo:a!sortInfo(field:"yourWish", ascending:false),
    local!pagingInfo: a!pagingInfo(
    startIndex:1,
    batchSize:5,
    sort: local!sortInfo
    ),

    a!gridField(
    ====
    ====
    value:local!pagingInfo,
    saveInto:{
              local!pagingInfo,
              local!pagingInfo.sort << rule!APN_returnFirstInput(local!sortInfo,_)
    }
    )
    )
Reply
  • Ignore the new sort information thrown by the grid when user click on a field for sorting, and replace it with the default sort info that you already have in a variable. Following code could do the trick.

    load(
    local!sortInfo:a!sortInfo(field:"yourWish", ascending:false),
    local!pagingInfo: a!pagingInfo(
    startIndex:1,
    batchSize:5,
    sort: local!sortInfo
    ),

    a!gridField(
    ====
    ====
    value:local!pagingInfo,
    saveInto:{
              local!pagingInfo,
              local!pagingInfo.sort << rule!APN_returnFirstInput(local!sortInfo,_)
    }
    )
    )
Children
No Data