DayPilot HTML5 Scheduler - Filter Row (dp.onRowFilter) Conflict
6 years ago.
Hi
I want to be able to use both the "room" filter...
dp.onRowFilter = function(args) {
if (args.row.name.toUpperCase().indexOf(args.filter.toUpperCase()) === -1) {
args.visible = false;
}
};
and the "Hide Empty Rows" function...
dp.onRowFilter = function (args) {
var hideEmptyRows = args.filter;
args.visible = !hideEmptyRows || !args.row.events.isEmpty();
};
But as they both use "onRowFilter" I cannot use them together. As soon as I type for the room filter the empty rows disappear. ;( I want to be able to to filter the rows to show set rooms, then to hide the empty ones. Is there a workaround?
Thank You ;)
DayPilot