Originally Posted by
deejayns
'What are the other ways that force OnRefreshData on the Store to be called, does it always get used on page loads if present?'
So what will trigger 'OnRefreshData' when having a PageProxy assigned to a store?
1) The 'Next Page' clicked on PagingToolbar
2) Page_Load?
3) store.load() in javascript?
A OnRefreshData handler of a Store with PageProxy is executed each time when a Proxy initiates a load request.
A proxy's load request is always initiated on client side and can occur:
1. On initial page loading when a Store is rendered and its AutoLoad="true". It's "true" by default.
2. On PagingToolbar changing pages when a Store is configured with RemotePaging="true". It's "true" by default when a Store is configured with any kind of proxy.
3. On sorting when a Store is configured with RemoteSort="true". It's "false" by default.
4. On remote grouping and filtering.
5. The Store's load and reload should also initiate a load request.
Originally Posted by
deejayns
I have a situation where PageProxy being added dynamically in PageInit, does that mean that 'OnRefreshData' will be triggered afterwards?
Yes, it should be triggered in all cases I mentioned above.