Issue in filter on dhtmlxGrid columns

Filter on grid is not performing task:

  1. Filter some records at Grid.
  2. Disappear filter all records will appear in grid.
  3. Push filter button again and try to search records against some critaria.
  4. Grid will not show filtered data
var filterHeader =" ,#text_filter,#text_filter";
showHideFilterHeader(filterHeader,Grid,Toolbar);

here is what i am doing:

var FilterHeader =" ,#text_filter,#text_filter"; //filter header
			
toolbar = dhxLayout.cells("a").attachToolbar();
toolbar.addButton("showfilter",8,"<%=imgFilterText%>","<%=imgFilter%>");
toolbar.addButton("hidefilter",9,"<%=imgFilterClearText%>","<%=imgFilterClear%>");
toolbar.hideItem("hidefilter");

Grid.attachEvent("onXLS", function(gridObj){onStartGridData(toolbar,false)});
Grid.attachEvent("onXLE", function(gridObj){onEndGridData(toolbar,true)});

toolbar.attachEvent("onClick",toolbarHandler);	

function toolbarHandler(id) {
   if(id=="showfilter" || id=="hidefilter"){			  showHideFilterHeader(FilterHeader,Grid,toolbar);//show/hide given filterHeader at given Index i.e. 1
}