
Datatable default filter value?
Hi!
Is it possible to set a default filter value on the filter of a datatable column?
I want the datatable to filter on "Ingediend" by default and when the user wants another filter they remove the "Ingediend". Is this possible?
By using javascript I am able to select the datatable using the HTML ID of an parent container. In the console of the webbrowser I am able to dig down to:
group_sheet_container.children[3].children[2].columns[3]
which has the property filterVal which i am able to set.
But when I try to use some javascript code to dig down to here I get the error that columns is undefined. The code I am using right now is:
document.addEventListener("DOMContentLoaded", function(event) {
var element_grid = group_sheet_container.children[3].children[2].columns[3];
console.log(element_grid);
});
And the error I get:
TypeError: group_sheet_container.children[3].children[2].columns is undefined
Thanks,
Marc
Hi!
Is it possible to set a default filter value on the filter of a datatable column?
I want the datatable to filter on "Ingediend" by default and when the user wants another filter they remove the "Ingediend". Is this possible?
By using javascript I am able to select the datatable using the HTML ID of an parent container. In the console of the webbrowser I am able to dig down to:
group_sheet_container.children[3].children[2].columns[3]
which has the property filterVal which i am able to set.
But when I try to use some javascript code to dig down to here I get the error that columns is undefined. The code I am using right now is:
document.addEventListener("DOMContentLoaded", function(event) {
var element_grid = group_sheet_container.children[3].children[2].columns[3];
console.log(element_grid);
});
And the error I get:
TypeError: group_sheet_container.children[3].children[2].columns is undefined
Thanks,
Marc
Login to reply