Hello Webix team,
My table search is not providing correct result.
Hello Webix team,
My table search is not providing correct result.
Please reply
Hello @leod1481 ,
The point is that frozen rows ignore filtering applied to the datatable. It means that while you sfilter data in a datatable, data of these rows won’t be taken into account
https://docs.webix.com/datatable__frozen_rows.html#sortingandfilteringwithfrozenrows
But, as a solution, you can remove split in the moment of filtering using onBeforeFilter and onAfterFilter events
on:{
onBeforeFilter:function(){
var id = this.getIdByIndex(topSplit-1);
if(id)
this.freezeRow(id, false); //remove split
},
onAfterFilter:function(){
var id = this.getIdByIndex(topSplit-1);
if(id)
this.freezeRow(id, true);//restore split
}
}
Please check the sample: Code Snippet