Data not getting displayed
Data not getting displayed
Hi,
I ve an situation where the newly opened tab is not getting loaded with any data. i.e. for e.g.
If I'm opening a tab called "A" that has a results of a serach S1 and then a tab called "B" which has the serach results S2. After this, If I close the "A" tab and then do the same search S1, the new tab is getting created but is not displaying any results.
Whereas if I close all the tabs and then do the search S1, then the results are getting displayed properly
I tried various options but its still the same.
Im using the following definition for the aoColumns
$("#"+divId+"table").search({
dataTableLoad:true,
"sDom": 'R<"clear"><"fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix"Ti>t<"fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"p>',
bDestroy:true,
aoColumns: [
{
field:"A",
sTitle: "X",
bVisible: true,
},
{
field:"B",
bVisible: false
}
],
iDisplayLength: 25
});
in the Load Table, we are setting the values for the fields by calling the oTable function which is as follows
we are calling the element.datatable as follows
var oTable = $("#" + elementId).dataTable({
bJQueryUI: (options && options.bJQueryUI) ? options.bJQueryUI : false,
"sDom": (options && options.sDom) ? options.sDom : "",
"bSortClasses": false,
"aaData": aNew,
//bDestroy: true,
"bRetrieve": true,
"bAutoWidth": false,
"aoColumns": (options && options.aoColumns) ? options.aoColumns : [
{
"bVisible": false,
"bSearchable": false
},
{
field:"A",
sTitle: "X",
bVisible: true,
},
{
field:"B",
bVisible: false
}
],
iDisplayLength: (options && options.iDisplayLength) ? options.iDisplayLength : 30
});
Can someone tell me if Im Missing anything? Is it the problem with datatables wrapper? Is there anyway to sort this issue?
I ve an situation where the newly opened tab is not getting loaded with any data. i.e. for e.g.
If I'm opening a tab called "A" that has a results of a serach S1 and then a tab called "B" which has the serach results S2. After this, If I close the "A" tab and then do the same search S1, the new tab is getting created but is not displaying any results.
Whereas if I close all the tabs and then do the search S1, then the results are getting displayed properly
I tried various options but its still the same.
Im using the following definition for the aoColumns
$("#"+divId+"table").search({
dataTableLoad:true,
"sDom": 'R<"clear"><"fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix"Ti>t<"fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"p>',
bDestroy:true,
aoColumns: [
{
field:"A",
sTitle: "X",
bVisible: true,
},
{
field:"B",
bVisible: false
}
],
iDisplayLength: 25
});
in the Load Table, we are setting the values for the fields by calling the oTable function which is as follows
we are calling the element.datatable as follows
var oTable = $("#" + elementId).dataTable({
bJQueryUI: (options && options.bJQueryUI) ? options.bJQueryUI : false,
"sDom": (options && options.sDom) ? options.sDom : "",
"bSortClasses": false,
"aaData": aNew,
//bDestroy: true,
"bRetrieve": true,
"bAutoWidth": false,
"aoColumns": (options && options.aoColumns) ? options.aoColumns : [
{
"bVisible": false,
"bSearchable": false
},
{
field:"A",
sTitle: "X",
bVisible: true,
},
{
field:"B",
bVisible: false
}
],
iDisplayLength: (options && options.iDisplayLength) ? options.iDisplayLength : 30
});
Can someone tell me if Im Missing anything? Is it the problem with datatables wrapper? Is there anyway to sort this issue?
This discussion has been closed.