Skip to content

Instantly share code, notes, and snippets.

@cschuff
Last active February 22, 2017 13:13
Show Gist options
  • Save cschuff/05235a77eb4030b2fc04553d22d83e72 to your computer and use it in GitHub Desktop.
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).
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