Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82265

Can a Datatable 1.10 exist in the same page as Datatable 2?

$
0
0

Just a quick yes or no on the subject, before I go an tear apart the table and rebuild it.

Scenario: I have a few datatables on 1 page. 2 are written in the 1.10 style using the dom: 'Blifrtip', formater. After the page is loaded, I load in a datatables 2 configured page, and even though I set (during the loading of the table):

DataTable.defaults.layout = { topStart: null, topEnd: null, bottomStart: null, bottomEnd: null };
and use
`
layout:
{
topStart:
{
pageLength:
{
menu: [[10, 25, 50, 500, 1000, -1], [10, 25, 50, 500, 1000, "All"]],
},
info: {},
search : {},
buttons: [
{ extend: 'create', editor: t_walmartListingEditor },
{ extend: 'edit', editor: t_walmartListingEditor },
{ extend: 'remove', editor: t_walmartListingEditor },
{ text: 'Submit',
action: function (e, dt, node, config)
{

                            // need to decide if we can send by options or send by all...

                      }
                }
            ],
        },

        bottom: ['info', 'paging'],
    },

`
The elements are stacked on top of each other instead of in a line like it should be. I thought it might be the CSS of the table messing with it, but I could not find anywhere it was.

The table loads like it should by itself, which is why I am asking. If it is a no, then I will dig deeper into the code.


Viewing all articles
Browse latest Browse all 82265

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>