Fix bug where page upper bound could be greater than queryRecordCount
Trigger event in ajax success callback