Best way to integrate DataTables with an existing client-side js app
Best way to integrate DataTables with an existing client-side js app
I'm new to DataTables but I'm very impressed with what I see.
I have a js application that does quite a bit of dynamic table manipulation (adding, deleting, restructuring rows) and I have a few questions regarding the use of this tool.
1) What is the best way to integrate DataTables with my existing app? I notice that once I call the constructor and then modify the table with js I get an error. Do I need to close DT before the mods and then call the constructor again?
2) When I use width='100%' DT doesn't seem to limit the table to a containing . Why?
3) If I have the background of a cell highlighted, and then select the header of the column containing that cell. The whole column changes color and overwrites the highlighted cell background. Is there a way to prevent that?
4) My table supports the concept of an "expanded" row. This allows users to click on any row and expand it. The expanded row contains an embedded table that displays additional data. If I try to sort columns while the row is expanded, I get a run-time error. This is understandable because the cells in this row are of a different structure than the other collapsed rows. Could I somehow tap into the click event on the column header and collapse the expanded row before the plugin tries to sort the column?
Thanks
I have a js application that does quite a bit of dynamic table manipulation (adding, deleting, restructuring rows) and I have a few questions regarding the use of this tool.
1) What is the best way to integrate DataTables with my existing app? I notice that once I call the constructor and then modify the table with js I get an error. Do I need to close DT before the mods and then call the constructor again?
2) When I use width='100%' DT doesn't seem to limit the table to a containing . Why?
3) If I have the background of a cell highlighted, and then select the header of the column containing that cell. The whole column changes color and overwrites the highlighted cell background. Is there a way to prevent that?
4) My table supports the concept of an "expanded" row. This allows users to click on any row and expand it. The expanded row contains an embedded table that displays additional data. If I try to sort columns while the row is expanded, I get a run-time error. This is understandable because the cells in this row are of a different structure than the other collapsed rows. Could I somehow tap into the click event on the column header and collapse the expanded row before the plugin tries to sort the column?
Thanks
This discussion has been closed.