Bug fix 19619 :Added beforequery listener on expand, otherwise this listener is setting the store to local for initial value. This will make sure data is fetched before setting the store to local when recs < 25.
Removed condition to prefetch without any parameters to determine the total number of records, it is not required anymore