on 02-12-2014 4:12 PM
Anybody know how to set default selections on a declarative ListBox?
<div data-sap-ui-type="sap.ui.commons.ListBox" data-allow-multi-select="true" >
<div data-sap-ui-type="sap.ui.core.ListItem" data-text="List1" data-key="key1"></div>
<div data-sap-ui-type="sap.ui.core.ListItem" data-text="List2" data-key="key2"></div>
<div data-sap-ui-type="sap.ui.core.ListItem" data-text="List3" data-key="key3"></div>
Hi,
I think only is possible by javascript using setSelectedIndexes
There is no property on constructor and listitem has no property to bind with this purpose.
May be the best option could be develop this call in onInit controller method.
Kind regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.