Last active
February 22, 2017 13:13
-
-
Save cschuff/05235a77eb4030b2fc04553d22d83e72 to your computer and use it in GitHub Desktop.
How to suspend and resume a Binding in SAPUI5 without having resume refresh it if it has pending changes from the suspended period. This can be particularly helpful if your UI already reflects the changes and you want to prevent additional rerenderings (e.g. after drag and drop operations).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var oBinding = this.byId("Control").getBinding("items"); | |
oBinding.suspend(); | |
// ... | |
oBinding.bPendingRefresh = false; | |
oBinding.resume(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment