i am new to datatable concept

i am new to datatable concept

amitgo.92amitgo.92 Posts: 2Questions: 1Answers: 0

table = $('#Tbl').dataTable(
{
"data": dataArray,
"iDisplayLength": 10,
"dom": 'frtp',
"pagingType": "simple_numbers",

    "aoColumnDefs": [
    { "aTargets": [0], "sTitle": "Order Num", "bSortable": true,
        "sWidth": "80px",

        "render": function (data, type, row) { //can somebody explain me what this function is doing

            var SchemeColHTML = CreateDataHTML(data);
            return SchemeColHTML;
        }
    },


    { "aTargets": [5], "sTitle": "Amount", "bSortable": true, 
        "sWidth": "100px"
    },
    { "aTargets": [6], "sTitle": "Goal", "bSortable": true, 
        "sWidth": "100px"
    },
    { "aTargets": [7], "sTitle": "Select", "bSortable": true, "bSearchable": false,
        "sWidth": "80px",
        "render": function (data, type, row) {    //can somebody explain me what this function is doing
            var returnHTML = CreateDataHTML(data);
            return returnHTML;
        }
    },

    , { "visible": false, "targets": [1] }   //what this line means 
   ]

}
    );

Answers

This discussion has been closed.