Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Listgrid: is it possible to sort using a hidden field?

    Hi,

    I'm using version 7.0rc2 and i need to sort a listgrid using a hidden field ( showIf: 'false' ).

    The issue is that sort method returns false. Is it possible to sort this somehow or is it a SC limitation?

    If i remove the showIf from the field, sorting works fine.

    Thanks!

    #2
    Found it:

    don't use
    Code:
    grid.sort(fieldName, SortDirection.ASCENDING);
    but use
    Code:
    grid.setSort(new SortSpecifier[]{new SortSpecifier(fieldName, SortDirection.ASCENDING)});
    which doesn't check if fieldName is hidden or if setCanSort is false.

    Comment

    Working...
    X