Below is a very simple example of a paging grid with the data supplied by a function. The data is recreated on each call of the function and the number of times the function has been called is shown in the final column.
Page forwards and backwards to see it increase.
Note that in function binding you are expected to handle the paging and sorting within the function - it works like URL binding.
View the source to see how it works.