Invoke render function only once for a nested data source.

Invoke render function only once for a nested data source.

vthattaivthattai Posts: 1Questions: 1Answers: 0

Greetings ,
I have started using datatables for a project, and cannot stop appreciating it. the ease of use of creation, and thanks to so much customizations, this is one of the best tabular javascript implementations.

I am working on this data set (from the objects_deep.txt)

  {
    "data": [
      {
        "name": "Tiger Nixon",
        "hr": {
          "position": "System Architect",
          "salary": "$320,800",
          "start_date": "2011/04/25"
        },
        "contact": [
          "Edinburgh",
          "5421"
        ]
      }
      ]
  }

and have my column defs like this .

                { "data": "tmp",defaultContent:"test",
                    "searchable": false,
                    "orderable": false,
                    "filter":false,
                    "multiple":false,
                   "render": function(data,row,full){
                       console.log("rendering "+renderCount);
                       renderCount++;
                       return "test";
                   }},

problem :
for the above data set, this render function is getting invoked multiple times (~ 3). i only need it to be invoked once ? can you suggest me any flags that will disable multiple rendering of this column.

Sincere thanks for taking time to read, and answer.

vthattai

This discussion has been closed.