I have a gridview with data, it has defaultorder set to date and pagination set to 20. On some of the pagination pages the last one or two rows from the previous page shows up at the top on the current page. Any ideas on this? Maybe something with the sorting?
In my models search-method:
return new ActiveDataProvider($this, array(
Change the first date to 2012-01-01 and then click "sök"
Go to page 3, the two names at the bottom will also show up on page 4 at the top.
It seems your are running on ubuntu, so I would expect that you are using mysql and not MSSQL.
If not, find inspiration in my previous answers:
Your servers is running IIS and likely also MSSQL - your localhost may be running mysql on your localhost or have a number of records for which the issue does not occur.
Also, if you are filtering on relations, you probably need to have ‘together=true’ in place. Or, I recommend to use my extension: http://www.yiiframework.com/extension/relatedsearchbehavior/ .