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!

Found it:

don’t use

grid.sort(fieldName, SortDirection.ASCENDING);

but use

grid.setSort(new SortSpecifier[]{new SortSpecifier(fieldName, SortDirection.ASCENDING)});

which doesn’t check if fieldName is hidden or if setCanSort is false.