Hi All,
I have a list to bind the data using oData model.
for this list , i have to implement live search at front end level ( it should not go to backend to filter the data ).
i have used filters but front end going back to gateway for each and every character which i entered for live search in search field.
below is my XML view for list display.
<SearchField id="searchField" placeholder="Search" liveChange="onSearchQueue" showRefreshButton="{device>/isNoTouch}"
tooltip="{i18n>masterSearchTooltip}" width="100%">
</SearchField>
<List growing="true" growingScrollToLoad="true" id="list" mode="SingleSelectMaster" noDataText="{i18n>masterListNoDataText}"
select="onSelect">
<items id="masterList">
<ObjectListItem counter="0" id="mainListItem" class="queueHeight" markFavorite="false" markFlagged="false" press="onSelect"
title="{QName}" type="{device>/listItemType}" >
<core:ExtensionPoint name="extListItemInfo"/>
</ObjectListItem>
</items>
</List>
data binding as below in controller:
this._olist = this._oView.byId("list");
var oModel = this.getView().getModel();
oModel.setUseBatch(false);
this._olist.setModel(this.getView().getModel());
this._olist.setGrowing(false);
this._olist.bindItems({
path: this._path,
template: this._oItemTemplate
});
Please let me know any alternative solution for live search without Filters .
Regards,
Vamshi.