title: Change filter value dynamically for a kendo datasource?
body: <p>I would like to be able to update the filter value dynamically through a function:</p>
  
  <pre><code>filter: [{
              "field": "id_person",
              "operator": "eq",
              "value": GetIdPerson()
         }]
  </code></pre>
  
  <p>And the function:</p>
  
  <pre><code>function GetIdPerson() {
       try{
           if (viewModel.get("SelectedMember").id_person &gt; 0) {
              return viewModel.get("SelectedMember").id_person;
           }
       } catch(ex) { }
       return 0;
   }
  </code></pre>
  
  <p>But the function is not being called when I call datasource.read().</p>
  
  <p>Is there a better way to accomplish this?</p>
  
  <p>Or if this is the best way, what am I doing wrong?</p>
  
  <p>Thanks!</p>