title: How to do oData client filter in sap.m.SelectDialog?
body: <p>I'm using <code>sap.m.SelectDialog</code> with <code>sap.ui.model.odata.v2.ODataModel</code>, the implementation of search in SelectDialog follows <a href="https://sapui5.hana.ondemand.com/#/sample/sap.m.sample.SelectDialog/code/C.controller.js" rel="nofollow noreferrer">the sample</a></p>
  
  <pre><code>    handleSearch: function(oEvent) {
          var sValue = oEvent.getParameter("value");
          var oFilter = new Filter("Name", sap.ui.model.FilterOperator.Contains, sValue);
          var oBinding = oEvent.getSource().getBinding("items");
          oBinding.filter([oFilter]);
      },
  </code></pre>
  
  <p><code>handleSearch</code> will trigger <code>substringof</code> method of EntitySet, But our oData service did not implement <code>substringof</code>, <code>skip</code>, <code>top</code>. </p>
  
  <p>So my question is since front-end has get the whole data, can I do filter in client side? </p>
  
  <hr>
  
  <p>I tried to set DefaultOperationMode  in <code>handleSearch</code>:</p>
  
  <p><code>this._oModel.sDefaultOperationMode = "Client";</code></p>
  
  <p>not working.</p>
  
  <p>Also tried to operate data in model directly, but this._oModel.oData returned not the whole data. but when I scroll down, new items are added with no new GET is triggered. Feel very confused about this.</p>
  
  <hr>
  
  <p>BTW, if this can be done, how to hide search box in <code>SelectDialog</code>, the corresponding method seems not provided.</p>