I created a DhtmlxCombo checkbox using the following code:
myQueryTerm = new dhtmlXCombo(“QueryTerm”, “queryterm1”, 130, “checkbox”);
myQueryTerm.load(“getQueryTerm.asp”);
I want to use the combo checkbox to filter a dhtmlxgrid
I am using the following code:
myQueryTerm.attachEvent(“onCheck”, function(value){
var checked_array = myQueryTerm.getChecked();
if(checked_array == “”)
{
mygrid.filterBy(0,"");
}
else
mygrid.filterBy(0,value);
});
when I check an option in the checkbox it successfully filters the grid. however if I check a second box it loses the original filter and only filters the new item.
I am at a complete loss. Please help.