I wish to bind a filter dynamically in the controller of a xml view to a control in the view. I know how to do this but I don't find a proper way to do this initially.
E.g. I defined a ComboBox on the view and gave a binding path to the oData model (in the view). Then in the controller I wish to set a fiter on the items of the ComboBox. I tried in onInit of the view but there the binding is not yet set in the ComboBox object.
I solved it by doing a lazy loading and set the filter in the "loadItems" event. Is there any way to do this by not using lazy loading? Did not find a proper event or standard hook.
Thanks.