Toggle grid paging ON/OFF

Is there a way to switch paging on/off (i.e. with a toolbar button) without unload and reloading the grid.

I try to set

myresultgrid.enablePaging(true…

myresultgrid.enablePaging(false…

via a button with existing grid, but nothing happens.

Unfortunately it is not available to switch the paging on/off dynamically,