Clear masterCheckBox

Hi everyone,

I have a grid whith filters and mastercheckbox in header.
When I reload my grid, i woul clear all filters and reinitialize my master_checkbox.
For filters : done.
But how can i reinitialize my master_checkbox ?

[...]
this.listCritere.attachHeader("#text_filter,#text_filter,#master_checkbox");
[...]
this.listCritere.clearAll();		
// Reinit filtering
this.listCritere.getFilterElement(0).value="";
this.listCritere.getFilterElement(1).value="";
//this.listCritere.getFilterElement(2).value="";		=> Don't work !
this.listCritere.filterBy(0,"");
this.listCritere.filterByAll();		this.listCritere.load($_value("contextPath")+"/confid/rubriques_listOfValues.action"+"?idRubrique="+this.cmbRubrique.getSelectedValue()+"&codePays=" + codePays +"&sort_column=" + sortColumn + "&sort_direction=" + sortDirection);

Can you help me ?

Nobody ?

i try this :

			myGrid.clearAll();
			myGrid.getFilterElement(0).value="";
			myGrid.getFilterElement(1).value="";
			myGrid.detachHeader(1);
			myGrid.attachHeader("#text_filter,#text_filter,#master_checkbox");
			myGrid.getFilterElement(0).value="";
			myGrid.getFilterElement(1).value="";
			myGrid.refreshFilters();
			myGrid.filterBy(0,"");
			myGrid.filterByAll();

This code works fine except that Filter (#text_filter) is keep in memory, and even if the text area is empty, when i begin typing in, the new filter is combine with the older filter.
How can i reset correctly my filters.

If i just do

			myGrid.clearAll();
			myGrid.getFilterElement(0).value="";
			myGrid.getFilterElement(1).value="";
			myGrid.filterBy(0,"");
			myGrid.filterByAll();

Filters are correctly empty, but my #master_checkbox is still checked

Unfortunately the master_checkbox cannot be (un)checked with the API, but only by the user. YOu will have to reattach the header containing the master_checkbox after the reloading the data of your grid.

The issue with the text_filter is confirmed and will be fixed in the near time.

The issue with the filter after the reloading of the grid is fixed.
Please, try to use the attached js file instead of original.
The same fix will be included in the next release of dhtmlxgrid.
dhtmlxgrid_filter.zip (4.9 KB)