Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

SelectList with grouper

$
0
0

Hi,

 

Is it possible to group items in a sap.m.SelectList control? If yes, can someone provide an example?

 

I tried with this code, but it doesn't work:

 

list.bindAggregation(                                        "items",                                        {                                            path : "/StudentSet",                                            template : stTemplate,                                            sorter: {                                                path: 'Year',                                                descending: false,                                                group: true                                            },                                            groupHeaderFactory:                                                 function (oGroup){                                                    return new GroupHeaderListItem( {                                                        title: oGroup.Year,                                                        upperCase: false                                                    } );                                                },
...

 

Thanks,

 

Robbe Wuyts


Viewing all articles
Browse latest Browse all 6178

Trending Articles