server side pagination using java connector

i’m having dhtmlxgrid pro 3.5
i have generated dhtmlxgrid with large database using java connector.
now i want server side pagination in my grid.

what things i need to do in my class to implement this?
please provide me any sample code for the same if having.

You may use any sample in the connector package with dynamic loading of data.
There is no difference between smart rendering and paging on the server-side.