retrieve existing object

retrieve existing object

anandkulkarnianandkulkarni Posts: 9Questions: 3Answers: 0
edited October 2015 in DataTables 1.10

Hi,

I am initialising my datatable with some options.

At one point, when i get the column header like below,

sizeTable.DataTable().column( index ).header();

The table gets reinitialised with all default options, which i don't want.. I have added following options at the time of initialisation

sometable.DataTable(
{

        "bFilter" : false,
        "paging" : false,
        "ordering" : false,
        "info" : false,
        "bAutoWidth" : true,
        data : itemDetails[itemDetailsKey].columnData,
        columns :itemDetails[itemDetailsKey].headers,
        "order" : [],
         "retrieve": true
    }

);

Also tried "bRetrieve":true,".. not success. Table gets drawn with searching and ordering.

Can you help?

This question has an accepted answers - jump to answer

Answers

  • anandkulkarnianandkulkarni Posts: 9Questions: 3Answers: 0

    Do we neat put 'destroy=false' exclusively for retrieve to work ?

  • allanallan Posts: 61,893Questions: 1Answers: 10,145 Site admin
    Answer ✓

    sizeTable.DataTable().column( index ).header();

    That should not reinitialise the table. Can you link to a test page (per the forum rules) showing the issue please.

    Allan

This discussion has been closed.