Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

General question / best practice: When to use ListGrid.setAutoFetchData(true) ?

$
0
0
Hi Isomorphic,

I'm wondering why there is a mechanism like DataBoundComponent.setAutoFetchData(true).
The docs say "Generally, turn off autoFetchData if you are going to manually call fetchData() at any time.", which is what I do.

In which cases is it useful to have AutoFetchData? The two advantages I see are:
  • It saves a line of code
  • The framework **might** be able to recognize two simultaneously issued requests (from a draw() call to a Layout with many DataBound members?) and combine them in a Queue. I don't know if that's even done.
Are there more advantages? When do you suggest to use autoFetchData?

Thank you & Best regards,
Blama

Viewing all articles
Browse latest Browse all 4756

Trending Articles