Re: DataTable Paginator containers problem
> The DataTable constructor will blow away the content of its containerHi Luke, that makes sense.
> node during construction, so by the time the Paginator needs to
> render, the div actionButtonsMarkupContainer is no longer in the DOM.
> You'll need to supply a container outside that which the DataTable
> will use as its content container.
However, I'm trying to place my Paginator's template buttons in the
table's <tfoot> section.
Can you suggest a way to accomplish this, or must it go in a element
container outside the table itself?
Thanks for your help!
> Hi Luke, that makes sense.You'll need to create the Paginator in an element outside the DataTable's container. However, the Paginator supports containers that are not attached to the DOM. So you can use document.createElement('div') to create a div in code, assign that as the Paginator's container, then after the DataTable has rendered, add a tfoot, tr, and td to the DataTable's body table, and insert the div into the td.
> However, I'm trying to place my Paginator's template buttons in the
> table's <tfoot> section.
> Can you suggest a way to accomplish this, or must it go in a element
> container outside the table itself?
> Thanks for your help!
I threw together this example for you.
Hope this helps,