-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column Filters not working with table composed of colspan cells containing HTML elements #843
Comments
Hi @AustinFrederick, Do you have any javascript error appearing the browser's console inspector? Probably unrelated, the |
I dont have any JS errors in the console. The only thing I got was a warning about the cookies, but taking this |
Hard to tell from the info provided above what could be the issue. Also not sure why the toolbar is appearing at the bottom of the table in the screenshot, the config is not instructing to render it at the bottom. Would you be able to reproduce the issue and share it online on Codepen or equivalent? |
<title>Column Filters Example</title>
<style>
/* Basic styling for the table */
table {
border-collapse: collapse;
width: 100%;
}
th, td {
border: 1px solid black;
padding: 8px;
text-align: left;
}
</style>
Sample Table with Column Filters
Project Number:
Project Name:
Location:
Project Executive:
Status:
|
Hello! I am trying to use this in my project. I have a somewhat complex HTML table that contains 25 columns. The first 13 columns contain strings. The last 12 columns contain HTML elements (divs) which represent the timing of various activities in a project.
The last 12 columns are composed of a 12 column colspan in each row, which house these divs (screenshot below for clarification). I am able to get the table filter to work on a basic grid, but when I apply it to this grid then the column filters dont work. All other features seem to work however.
My table is built dynamically on page load, including all html elements. After the table is built I use this code to initialize the filters.
Note that that code isnt fully set up as I was just trying to get at least one or two columns filterable. I have tried many different variations of that chunk of code and nothing worked for me so far.
Here is the skeleton of my table before it gets loaded with data
`
And here is a screenshot of what I am seeing so that you can understand how this table gets used. All data fed to the table is a String unless its under one of the date columns. You can see the area it creates in the header for the filters, but nothing shows up.
Is the TableFilter compatible with what I am trying to do or do I need to create me own filtering system?
Thanks!
For usage and support questions, please check out resources below, you might find an answer:
The text was updated successfully, but these errors were encountered: