I think I've found a bug with the PageSize property in the TreeList control. I'm setting the PageSize property in the HTML markup using a static property in code behind called "GlobalPageSize" like this:
PageSize='<%# GlobalPageSize %>'
GlobalPageSize is a property in my code that reads a value from a cookie. If no cookie is found, it returns a default value of 15. When I set the PageSize property like this, the paging doesn't work. For example, if I try to go to page 2, it will refresh and still be on page 1. If I try and change the page size using the dropdown, it refreshes and it still has the original value selected.
If I set the PageSize property to a hard coded value like this:
the paging works. It also works if I set the PageSize property in PageLoad event in code behind. So, after all my testing, it looks like the bug has to do with setting the PageSize property in markup using a value retrieved from code. Any thoughts?