[GRID => Paginal Output] Do not show pages list if there is

If i turn paginal output in grid, and there is only one page, I end up with one link (actually not even link), that has no reason to exist (at least in my case).

And here comes my question…

Is there any way to hide pages list if there is only one page present ?

There are two ways to accomplish such goal
a) modify code of dhtmlxgrid_pgn.js , so it will show nothing in case of one page dataset
b) done the same task by external code

          return true;