Actually upon further investigation it seems the code is called every time a page is changed. My code is below:
rowCount = radGridVessel.MasterTableView.Items.Count;
//get row count
radGridVessel.PageSize = (rowCount / 2) + 1;
//set for 2 pages
The code presents an issue because on load, the first page will be correct proportionately, but when the next page button is pressed, the code is executed again, essentially halving the page size each time the button is pressed. How can I keep this to persist across changing pages?