how to clear filtering, sorting and paging on a webdatagrid on client side?
<p>I have a webdatagrid which retains data on searching in text box. I have noticed when I filter/page/sort the data and before clearing any of these I make a new search then the new search results retains previous filter/page/sort condition. I am not clearing it before reloading the page. I have search method on client side and I am using following code which does not work:</p>

<pre><code>function btnSearch_click(sender, evntArgs){
     var grid = $find('&lt;%= grid1.ClientID %&gt;');
     grid.get_behaviors().get_filtering().clearColumnFilters();
     grid.get_behaviors.get_sorting().clearColumnSorting();
     grid.get_behaviors.get_paging().clearPaging();
}
</code></pre>

<p>This code is incorrect.</p>