title: Sharepoint 2010. Webpart form filter applied to listview doesn't clear
body: <p>I have a listview on a page that displays several records. Every record has "ID" column (1,2,3,4 ... ). I'd like to let user filter listview with text field. User types "ID" value he/she searches, clicks "find" button and listview should display the record that meets user criteria. I added form webpart with text field and connected it to list via connections property as described here:</p>
  
  <p><a href="https://stackoverflow.com/questions/4852132/how-do-you-filter-a-sharepoint-list-with-a-text-field">How do you filter a SharePoint list with a text field?</a></p>
  
  <p>That works great for the very first time: when user types value and presses "search" - listview is filtered as expetected. </p>
  
  <p>The problem happens when user tries to remove filter. 
  1. User can't remove filter through drop down menu for "ID" column. It simply doesn't work though column is displayed as filtered (special icon is displayed).
  2. User can't remove filter by removing all symbols in text field and clicking "search" once again. </p>
  
  <p>What I do wrong?</p>
  
  <p>I have found similar problem: 
  <a href="http://www.dotnetspark.com/links/47412-unable-to-clear-filter-on-sharepoint-list.aspx" rel="nofollow noreferrer">http://www.dotnetspark.com/links/47412-unable-to-clear-filter-on-sharepoint-list.aspx</a></p>
  
  <p>but no solution was proposed :( </p>
  
  <h1><strong>UPDATE</strong></h1>
  
  <p>This is temporary solution for text field - when it's empty and user clicks "search" the whole page is simply refreshed. I'm not sure if it is best practice (I'd prefer to update listview without page refreshing).  </p>
  
  <pre><code>&lt;div onkeydown="T1keydown()"&gt;
    &lt;input type="text" name="T1" id="T1T1"/&gt;
    &lt;input type="button" value="Search" onclick="T1apply()"/&gt;
  
    &lt;script type="text/javascript"&gt;
  
  function T1keydown() {
    if (event.keyCode == 13) 
      T1apply();
  }
  
  function T1apply() {
    var text = document.getElementById("T1T1").value;
    if (text.length &gt; 0) 
    {
      _SFSUBMIT_;
      return;
    }
    window.location.href=window.location.href;
  }
  
    &lt;/script&gt;
  &lt;/div&gt;
  </code></pre>