title: Kendo multiselect filtering after setting value
body: <p>I have a fairly complicated situation, in which I have a kendo grid that has some details for each record. Inside those details, there is a kendo multiselect that offers server side filtering capabilities. 
  I want to be able to "edit" the details of each record and change the value of the multiselect. In the case that the user decides to cancel the modification, I want to be able to revert back to the old values for the input. </p>
  
  <p>The code i am using for this is the following:</p>
  
  <pre><code>function onEditCancel(e) {
      revertMultiSelect(e.model.uid); 
      //using the uid will help us to only revert the desired multiselect 
  }
  
  function revertMultiSelect(uid)
  {
      var originalState = originalStateDictionary[uid]; 
      //this dictionary has the desired initial state
      if (originalState != null) {
          var multiSelect = $("#my_multiselect" + uid).data("kendoMultiSelect");                    
          multiSelect.dataSource.data(originalState.InitialDataSource);                    
          multiSelect.value(originalState.InitialSelectedIds);
      }
  }
  </code></pre>
  
  <p>The process is working completely fine when the only single modification to the multiselect value involves deleting, after clicking cancel on the row, the state of the multiselect is reverted succesfully (old values are prepopulated). </p>
  
  <p>HOWEVER, once I decide to add a new value (after a server side filtering operation has been completed) and I decide to cancel the operation, this stops the revertMultiSelect function stops working as expected.</p>
  
  <p>To be more specific, once the code reaches the line <code>multiSelect.value(originalState.InitialSelectedIds);</code> filtering is triggered once more with an emtpy value (I can intercept the filtering request on my server side). This is not being triggered when my only operation was to delete a value, and causes the multi select to lose ALL selected values and appear empty. </p>
  
  <p>I get the sense that if I can somehow prevent the filtering to occur on the cancel action, I could stop the multiselect from erasing itself.I have tried resetting the filter as indicated <a href="https://stackoverflow.com/questions/22010796/kendo-multiselect-value-setting-bug">here</a>  but had no success.</p>
  
  <p>Is there something I am missing?
  Greetings
  Luis.</p>
  
  <p><strong>UPDATE</strong> I added the following JSFiddle
  <a href="http://jsfiddle.net/8us1fvy1/2" rel="nofollow noreferrer">http://jsfiddle.net/8us1fvy1/2/</a></p>
  
  <p><em>Workflow 1:</em> </p>
  
  <ol>
  <li>Delete an Item</li>
  <li>Click on cancel button</li>
  <li>No indicator changes</li>
  </ol>
  
  <p><em>Workflow 2:</em></p>
  
  <ol>
  <li>Add an element (i.e. type 'Chef')</li>
  <li>See how the filter event is fired once</li>
  <li>Click on cancel button</li>
  <li>See how the filter event is fired once more (I dont know why in this case the values dont get deleted, in my scenario they do. The important piece is, however, that filter is fired once more)</li>
  </ol>