Reload data
Reload data
gerenne
Posts: 30Questions: 0Answers: 0
Hi!!
I've a data tables that is loaded with a simple array:
oTable =$('#table').dataTable( {
"aaData": a1,
"bFilter" : false,
"bRetrieve": true,
"bDestroy": true,
"aoColumns": [
{"mDataProp": 0},
{"mDataProp": 1},
{"mDataProp": 2},
{"mDataProp": 3},
{"mDataProp": 4},
{"mDataProp": 5},
{"mDataProp": 6},
{"mDataProp": 7}
],
"fnDrawCallback":
function() {
clickRowHandler();
}
} );
And when I press a button, I want reload the data of the table. I try with the clear function, but it remove all data, and not load the new data.
I've seem for others forums the function ajaxLoader, but I don't know if I can to use with a simple array.
Thanks and advance!!
I've a data tables that is loaded with a simple array:
oTable =$('#table').dataTable( {
"aaData": a1,
"bFilter" : false,
"bRetrieve": true,
"bDestroy": true,
"aoColumns": [
{"mDataProp": 0},
{"mDataProp": 1},
{"mDataProp": 2},
{"mDataProp": 3},
{"mDataProp": 4},
{"mDataProp": 5},
{"mDataProp": 6},
{"mDataProp": 7}
],
"fnDrawCallback":
function() {
clickRowHandler();
}
} );
And when I press a button, I want reload the data of the table. I try with the clear function, but it remove all data, and not load the new data.
I've seem for others forums the function ajaxLoader, but I don't know if I can to use with a simple array.
Thanks and advance!!
This discussion has been closed.
Replies
Allan