on 2016 Feb 05 5:20 AM
Hi Everyone,
I am trying to perform some action on clicking refresh (X button) in sap.m.searchfield. whenever I am clicking on refresh button I am unable to catch the refresh event.
Please someone help me to how to catch the refresh event.
is there any method to catch the event.
Thanks
I agree with sai. Addition to that, can you please refer this method.
_pushNewProduct: function () {
var aColl = this._productData.ProductCollection;
if (this._productCount < aColl.length) {
var oView = this.getView();
var oData = oView.getModel().getData();
oData.ProductCollection.push(aColl[this._productCount++]);
oView.getModel().setData(oData);
}},
And refer this link too: SAPUI5 Explored
Regards,
Karthik A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Siddappa,
If you set property showRefreshButton to true, it will just replace the search icon with refresh icon. You have to handle the logic of refresh button in search event only.
Check this sample: Plunker
Code:
onRefresh: function(oEvent) {
var oRefreshButton = oEvent.getParameter("refreshButtonPressed");
if (oRefreshButton) {
var list = this.getView().byId("idList");
var binding = list.getBinding("items");
binding.filter(null);
}
}
Snippet:
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
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.