Filter on grid is not performing task:
- Filter some records at Grid.
- Disappear filter all records will appear in grid.
- Push filter button again and try to search records against some critaria.
- 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
}