SAPUI5: can not access `sortItemData` in the sap.m.P13nSortPanel at update event. -
i want collect sortitemdata
in sap.m.p13nsortpanel
object on update time.
so wrote following function:
_onupdatesortitem: function(oevent) { var parameters = oevent.getparameters(); var osortitemdata = oevent.getparameter("sortitemdata"); if (osortitemdata) { this._osorter[parameters.key] = { scolumnkey: osortitemdata.getcolumnkey(), soperation: osortitemdata.getoperation() }; } },
and bound onupdate
handler. problem osortitemdata
undefined while if use function onaddsortitem
event works fine.
after checking code of sap.m.p13nsortpanel fires event, assume did not bind sortitems
aggregation. please have @ explored example well. there can see panel uses 2 aggregations, items
, sortitems
.
Comments
Post a Comment