Depending on the different use cases, you can use different binding types: property binding, context binding, list binding, and tree binding.
Property binding allows properties of the control to get automatically initialized and updated from model data. You can only bind control properties to model properties of a matching type, or you use a formatter or a data type to parse and convert the data as needed For more information, see Formatting, Parsing, and Validating Data.
Context binding (or element binding) allows to bind elements to a specific object in the model that creates a binding context and allows relative binding within the control and all of its children. This is especially helpful in list-detail scenarios.
Aggregation binding (list binding or tree binding) is used to automatically create child controls according to model data, either by cloning a template control or by using a factory function:
sap.ui.table.TreeTable.Note:
The model has a default size limit to avoid too much data being rendered on the UI. This size limit determines the number of entries used for the list bindings. The default size limit is 100 entries.
This means that controls that don’t support paging or don’t request data in chunks (e.g.
sap.m.ComboBox) only show 100 entries even though the model contains more items.To change this behavior, you can either set a size limit in the model by using
oModel.setSizeLimitor set thelengthproperty of theoBindingInfoparameter of thesap.ui.base.ManagedObject#bindAggregationmethod.