I have a grid of document which has type 1 and 0. I have a checkbox that show type 1 document only.
The problem i have is filter attached to the grid header does not take filterBy into account.
For example:
I click the checkbox which run filterBy(TYPE_COLUMN,“1”). Then I filter document name using header filter. The name filter includes document of type 0. I expect to see type 1 document only.
Is there a way to fix that ? I am using v3.0
Sample Code
var mygrid = new dhtmlXGridObject('documentGrid');
mygrid.setSkin("light");
mygrid.attachHeader("#text_filter,#select_filter,#text_filter, , , , ");
mygrid.enableMultiline(true);
mygrid.init();
<input type=checkbox name="show_type_1" onclick="show();">Show Type 1 Document
<script>
function show(){
if(filter != 1)
{
filter = 1;
Grid.filterBy(3,"1");
}
else
{
filte =0;
Grid.filterBy(3,"");
}
}
</script>