data render not working

data render not working

andrew1986andrew1986 Posts: 12Questions: 5Answers: 0

Hi Guys,

Let's say we have this scenario

some json data:

{
"content" : [
{
"level1" : [1, 2 ,3]
},
{
"level2" : [5,6,7]
}
]
}

I'm trying to render level1 and level2 into different columns but I cannot find the right work to make the render works,

data = myjsonresponse;
var table = $("#mytable").DataTable({
data: data,
stateSave: true,
{ data : content, render : {filter : "level1", display: "level1" }
});

It breaks on error when rendering, any ideas?

Thanks in advanced.

This discussion has been closed.