Hi ,
I have column Relocate In Country, Relocate Out Country, and Shift Work containing checkboxes. I want to filter on any of the number of columns. The current code only work with the most recent check/unchecked checkbox.
For example:
I check on column Relocate In Country checkbox, all checked checboxes are showed. Then I check on column Relocate Out Country checkbox, all checked checkboxes (under column B ) are showed, but every checkbox under column A are showed (the column A filter is ignored). [see the attached image]
I expect to see only checked checkboxes when I check both columns.
Here is code
dhtmlXGridObject.prototype._in_header_filter_checkbox=function(t,i,c){
t.innerHTML=c[0]+"<input type='checkbox' />"+c[1];
var self=this;
t.firstChild.onclick=function(e){
self.filterBy(i,this.checked?1:0);
(e||event).cancelBubble=true;
}
}
mygrid.attachHeader("#filter_checkbox,#filter_checkbox,#filter_checkbox");
Thanks,
Michael