FixedHeader - Allow specific target for docking the header
FixedHeader - Allow specific target for docking the header
Azaret
Posts: 17Questions: 2Answers: 0
Hi,
I'm working on a huge project with lot of data, and for some listing, to have docked headers and footers could be a great improvement. In order to save time, I'm interested by using FixedHeader with my datatables, but unfortunately it's not working well in our specific environment.
See, we choose to work in a "desktop" way, by that I mean that we use floating dialogs with jquery UI in a web desktop. In our datatable dialogs, we have some panels and toolbar, and a datatable. So basically, we have our body page, with into it an absolute desktop layout, with into it some absolute dialogs, with into it some absolute panels, and with into one of these panels, our datatable.
So, for the moment with FixedHeader, it's just not working, first because putting the header on the body make it invisible (the desktop layout is overall), then it could be wider than a dialog (if our table is wider than the scroll panel). We try some workaround, by editing FH, adding the possibility to put another target than the body, which is working not badly, but then the scrolling is not working well, I guess because it's linked to the body again, but I'm not comfortable in the FH source code. And honestly it's not really the best way to work, as if for some reason you update the library, or we don't update, or we spend more time to modify it, not really efficient.
So, concretely, I would to know if it is possible to have FixedHeader updated with this possibility of having the header (and the others fixed elements by the way) to another target than the body or a direct absolute parent.
I hope you got what I was trying to say, if you need any information tell me.
Thanks you.
I'm working on a huge project with lot of data, and for some listing, to have docked headers and footers could be a great improvement. In order to save time, I'm interested by using FixedHeader with my datatables, but unfortunately it's not working well in our specific environment.
See, we choose to work in a "desktop" way, by that I mean that we use floating dialogs with jquery UI in a web desktop. In our datatable dialogs, we have some panels and toolbar, and a datatable. So basically, we have our body page, with into it an absolute desktop layout, with into it some absolute dialogs, with into it some absolute panels, and with into one of these panels, our datatable.
So, for the moment with FixedHeader, it's just not working, first because putting the header on the body make it invisible (the desktop layout is overall), then it could be wider than a dialog (if our table is wider than the scroll panel). We try some workaround, by editing FH, adding the possibility to put another target than the body, which is working not badly, but then the scrolling is not working well, I guess because it's linked to the body again, but I'm not comfortable in the FH source code. And honestly it's not really the best way to work, as if for some reason you update the library, or we don't update, or we spend more time to modify it, not really efficient.
So, concretely, I would to know if it is possible to have FixedHeader updated with this possibility of having the header (and the others fixed elements by the way) to another target than the body or a direct absolute parent.
I hope you got what I was trying to say, if you need any information tell me.
Thanks you.
This discussion has been closed.
Replies
Also there is another fixed header type plug-in which supports DataTables which might be of interest: http://programmingdrunk.com/floatThead/#intro
Allan
http://jsfiddle.net/azaret/mqERQ/
Allan
If I put scroll x and y at 100%, the table will just overflow, also if I resize the dialog, the headers are not updated.
Though I come with something by setting the head in fixed position, but still no update of the render, is there a api function for update ? At worst I could update the header on dialog resize event...
EDIT: http://jsfiddle.net/azaret/mqERQ/32/
Allan
Also it become messy when I switch the nowrap mode, which is mandatory in my case, the final user must be able to switch between these two states. Also I know my boss, he will dislike the vertical scrollbar hidden. So it's not really working.
FixedHeader seems to work better for rendering, there is the workaround for it : http://jsfiddle.net/azaret/P98ra/
It's working like a charm, tough in fact, I disabled the "scroll" thingy of FH because fixed position is not working in horizontal scrolling, so my modification won't work in example like the FH' doc. But maybe this could give some idea to make something out that could work in any situation. I know that my edits are bad, but as I said I'm not comfortable with your code, and I'm not sure of the best way to edit FH properly.
I would better use FH, because I like the idea to have also tfoot and the left column docked. Not in the example we test today, but in Resources agendas dialog, in the same project, it could be interesting to have left column docked, but I don't use datatable on my agendas.
So, Thanks for your help today
Your doing great job, so keep it like that.
Can we have datatable with fixedheader with column resizing functionality.
Is there any exmpale.
Thanks
Ashutosh
Allan