How to intialize multiple tables(Dynamically)
How to intialize multiple tables(Dynamically)
28.vivek.s
Posts: 69Questions: 0Answers: 0
hi Allan,
i have multiple tables and i am not able to initialize them dynamically...first i tried with this one
[code]
$(".datatable").dataTable({
"aaSorting":[],
"aoColumns": [
{ "sType": "html" },
null,
{ "bSortable": false},
{ "bSortable": false},
{ "bSortable": false},
null,
{ "bSortable": false},
{ "bSortable": false}
],
"sDom": '<"top"p<"clear">>rt<"bottom"ip><"clear">',
"bInfo": false,
"bAutoWidth": false ,
"bStateSave": false,
"iDisplayLength":5000
});
[/code]
it works fine....
but when i did some thing like this
[code]
var oTable=$(".datatable").dataTable({
"aaSorting":[],
"aoColumns": [
{ "sType": "html" },
null,
{ "bSortable": false},
{ "bSortable": false},
{ "bSortable": false},
null,
{ "bSortable": false},
{ "bSortable": false}
],
"sDom": '<"top"p<"clear">>rt<"bottom"ip><"clear">',
"bInfo": false,
"bAutoWidth": false ,
"bStateSave": false,
"iDisplayLength":5000
});
oTable.fnFilter('',iColumn,false)
[/code]
then its not working......
even i went through this discussion http://datatables.net/forums/comments.php?DiscussionID=188
but it couldn't help me...
i have to apply filtering function on all tables based on different requirements...so while doing this i m not able to recognize the tables...likee for single table oTable is fine...but for this scenario...i am little confused how to do this...
would you please tell me how to achieve this...
Any suggestion will be heartily appreciated..
Thanks,
Vivek
i have multiple tables and i am not able to initialize them dynamically...first i tried with this one
[code]
$(".datatable").dataTable({
"aaSorting":[],
"aoColumns": [
{ "sType": "html" },
null,
{ "bSortable": false},
{ "bSortable": false},
{ "bSortable": false},
null,
{ "bSortable": false},
{ "bSortable": false}
],
"sDom": '<"top"p<"clear">>rt<"bottom"ip><"clear">',
"bInfo": false,
"bAutoWidth": false ,
"bStateSave": false,
"iDisplayLength":5000
});
[/code]
it works fine....
but when i did some thing like this
[code]
var oTable=$(".datatable").dataTable({
"aaSorting":[],
"aoColumns": [
{ "sType": "html" },
null,
{ "bSortable": false},
{ "bSortable": false},
{ "bSortable": false},
null,
{ "bSortable": false},
{ "bSortable": false}
],
"sDom": '<"top"p<"clear">>rt<"bottom"ip><"clear">',
"bInfo": false,
"bAutoWidth": false ,
"bStateSave": false,
"iDisplayLength":5000
});
oTable.fnFilter('',iColumn,false)
[/code]
then its not working......
even i went through this discussion http://datatables.net/forums/comments.php?DiscussionID=188
but it couldn't help me...
i have to apply filtering function on all tables based on different requirements...so while doing this i m not able to recognize the tables...likee for single table oTable is fine...but for this scenario...i am little confused how to do this...
would you please tell me how to achieve this...
Any suggestion will be heartily appreciated..
Thanks,
Vivek
This discussion has been closed.