Someone who knows that how to make the table filling up the browser on print button click if the page use iframe
↧
iframe's print
↧
option to open immediately or save as
Is there a way to have the buttons for excel, csv, and pdf instead of immediately asking the user to save, prompt the user to view or save?
Thanks,
Thanks,
↧
↧
Tabletools - Save as PDF doesnt work sometimes
Hi,
For some reason pdf functionality (via table tools) doesnt work sometimes. Other functionalities (csv, copy, print) works fine. Anyone has faced this issue before?
Thanks,
Barani
For some reason pdf functionality (via table tools) doesnt work sometimes. Other functionalities (csv, copy, print) works fine. Anyone has faced this issue before?
Thanks,
Barani
↧
Warning: TableTools 2 requires DataTables 1.9.0 or newer on Internet Explorer (8/9)
Hello,
I'm receiving the error shown below on IE8/9, while the same code works just fine on FF/Chrome:
"
Warning: TableTools 2 requires DataTables 1.9.0 or newer -
www.datatables.net/download
"
Below are the version of the DataTables files I'm using:
dataTables.editor.min.js: 1.2.2
dataTables.tabletools.min.js (code starts with ' var ZeroClipboard_TableTools={version:"1.0.4-TableTools2" ...')
jquery.dataTables.min.js 1.9.4
jQuery v1.8.2
By looking into the Google Chrome Frame, I can see the following errors being triggered:
SCRIPT5007: Unable to set value of the property 'TableTools': object is null or undefined
dataTables.tabletools.min.js, line 57 character 378
SCRIPT445: Object doesn't support this action
table.aqua_cert_progress.js, line 11 character 2
Where code for the referred .js file looks like:
I'm receiving the error shown below on IE8/9, while the same code works just fine on FF/Chrome:
"
Warning: TableTools 2 requires DataTables 1.9.0 or newer -
www.datatables.net/download
"
Below are the version of the DataTables files I'm using:
dataTables.editor.min.js: 1.2.2
dataTables.tabletools.min.js (code starts with ' var ZeroClipboard_TableTools={version:"1.0.4-TableTools2" ...')
jquery.dataTables.min.js 1.9.4
jQuery v1.8.2
By looking into the Google Chrome Frame, I can see the following errors being triggered:
SCRIPT5007: Unable to set value of the property 'TableTools': object is null or undefined
dataTables.tabletools.min.js, line 57 character 378
SCRIPT445: Object doesn't support this action
table.aqua_cert_progress.js, line 11 character 2
Where code for the referred .js file looks like:
/* * Editor client script for DB table aqua_cert_progress * Automatically generated by http://editor.datatables.net/generator */ (function($){ $(document).ready(function() { var editor = new $.fn.dataTable.Editor( { /*Line 11*/ "ajaxUrl": ...
↧
Table Tools problem with Post Load data?
I have run the debugger on my specific instance (epoqaj) of dataTable where I build my data from an ajax request and then format that data for dataTable using the following code:
The object returned from this function is then passed directly into dataTable. I am just beginning to implement the Table Tools because of a request for export and have never had this feature working. The links appear (although not as buttons) and the print button does something but does not include the print dialog (at least not in chrome). I have checked all of the calls and note that none have 404s.
Can anyone help me get my exports working?
Please and thank you,
Michelle
function forDataTable(jsonArray){ var cols = getCols(jsonArray); var tableCols = new Array(); for(c in cols){ tableCols.push({"sTitle":cols[c]}); } var dataArray = new Array(); dataToArray(dataArray, jsonArray, cols); return { "aaData": dataArray, "aoColumns": tableCols, "bDestroy": true, "sDom": 'T<"clear"><"H"lfr>t<"F"ip>', "oTableTools": { "sSwfPath": "/mold_demo2/scripts/TableTools/swf/copy_csv_xls_pdf.swf" } } }
The object returned from this function is then passed directly into dataTable. I am just beginning to implement the Table Tools because of a request for export and have never had this feature working. The links appear (although not as buttons) and the print button does something but does not include the print dialog (at least not in chrome). I have checked all of the calls and note that none have 404s.
Can anyone help me get my exports working?
Please and thank you,
Michelle
↧
↧
table tools not working as expected.
I am using Data tables table tools plugin to convert a table in my project to pdf and xls file. But the problem is that the clickable area differs from the original button. The button is near the middle of the page and I need to click top left corner to activate the button. How to solve this?
↧
TableTools copies but doesn't export to CSV / XLS / PDF
Hi Alan et al.,
I have a semi-working TableTools implementation that copies and goes to print view but does not save.
I get the 'Save' dropdown menu fine but all the <li> are greyed out which has me thinking it may be a problem with CSS?
Site is using bootstrap 2.0.3, datatables 1.9.4, tabletools 2.1.4
Here's a debug code from the Firefox bookmarklet: http://debug.datatables.net/eyaqog
Here's my initialiazation from php:
I know the SWF path is working because copying the table works fine. What am I missing?
I have a semi-working TableTools implementation that copies and goes to print view but does not save.
I get the 'Save' dropdown menu fine but all the <li> are greyed out which has me thinking it may be a problem with CSS?
Site is using bootstrap 2.0.3, datatables 1.9.4, tabletools 2.1.4
Here's a debug code from the Firefox bookmarklet: http://debug.datatables.net/eyaqog
Here's my initialiazation from php:
<script type="text/javascript"> $(document).ready( function() { $('#phototable').dataTable( { "sDom": "<'row-fluid'<'span6'T><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>", "oTableTools": { "sSwfPath": "<?php echo PATH_JS; ?>datatables/TableTools/media/swf/copy_csv_xls_pdf.swf", "aButtons": [ "copy", "print", { "sExtends": "collection", "sButtonText": 'Save <span class="caret" />', "aButtons": [ "csv", "xls", "pdf" ] } ] } }); }); </script>
I know the SWF path is working because copying the table works fine. What am I missing?
↧
Postback problem in Print button in TableTools plugin..
Hello
I am using Server-side processing in my jquery datatable and creating a json file and calling it in my aspx page, i am also using TableTools plugin, after pressing print button , when i get back to my page by ESC key , suppose i have 2 rows in my datatable , it's showing 4(duplicate records). it is happening each time when i am pressing ESC key to get back on my page.
These are the setting for my print button.
"sExtends": "print",
"bShowAll": false,
"sInfo": "Please press escape when done",
Please suggest me.
I am using Server-side processing in my jquery datatable and creating a json file and calling it in my aspx page, i am also using TableTools plugin, after pressing print button , when i get back to my page by ESC key , suppose i have 2 rows in my datatable , it's showing 4(duplicate records). it is happening each time when i am pressing ESC key to get back on my page.
These are the setting for my print button.
"sExtends": "print",
"bShowAll": false,
"sInfo": "Please press escape when done",
Please suggest me.
↧
Can I use fnServerParams inside of oTableTools for jquery datatables?
I need to pass in an ID to initialize a jquery datatable. I'm using fnServerParams correctly in the main table, but when I click on the export button, the ID I need is no longer in the param parameter passed to the controller. Do I need to do something inside of oTableTools to retrieve the ID?
Javascript:
$(document).ready(function () {
var oTable = $('#tblAddressErrors').dataTable({
"bJQueryUI": true,
"iDisplayLength": 25,
"bServerSide": true,
"sAjaxSource": "/Issuance/Issuance/AjaxHandler2",
"sScrollX": "100%",
"bProcessing": true,
"aoColumns": [
{ "sName": "Master_Name" },
{ "sName": "Group_Name" },
{ "sName": "household_id",
"fnRender": function (oObj) {
var householdId = oObj.aData[2];
return '<a href=\"/Household/Household/Details?householdId=' + householdId + '\">' + householdId + '</a>';
},
"bUseRendered": false
},
{ "sName": "First_Name" },
{ "sName": "Last_Name" },
{ "sName": "Pan_NR" }
],
"sDom": '<"H"Tfr>t<"F"ip>',
"oTableTools": {
"sSwfPath": "/Content/media/swf/copy_csv_xls.swf",
"aButtons": [{ "sExtends": "download", "sButtonText": "Export", "sUrl": "/Issuance/Issuance/AjaxHandlerExport2" }]
},
"fnServerParams": function (aoData) {
aoData.push(
{ "name": "cardStockId", "value": $("#CardStockId").val() }
);
}
});
});
Controller Actions:
public ActionResult AjaxHandlerExport2(JQueryDataTableParamModel param)
{
var addressErrorsExports = (from addressErrorExport in GetAddressErrors(param, true).Issuances
select new
{
MasterGroupName = addressErrorExport.Group.MasterGroupName,
GroupName = addressErrorExport.Group.Name,
HouseholdID = addressErrorExport.HouseholdId,
FirstName = addressErrorExport.Group.ContactInfo.FirstName,
LastName = addressErrorExport.Group.ContactInfo.LastName,
PAN = addressErrorExport.PanNumber.ToString()
}).ToList();
return File(addressErrorsExports.ExportToCsv(new string[0]), "application/ms-excel", "AddressErrors.xls");
}
private IssuanceResults GetAddressErrors(JQueryDataTableParamModel param, bool isExport)
{
IssuanceResults issuanceResults = new IssuanceResults();
IssuanceSearch issuanceSearch = PopulateIssuanceSearch(param, isExport);
issuanceSearch.CardStockId = param.cardStockId;
using (var householdService = _householdService.GetWrappedProxy())
{
issuanceResults = householdService.BaseObject.GetIssuanceResults(issuanceSearch, Common.Issuance.ReturnType.AddressErrors);
}
return issuanceResults;
}
private IssuanceSearch PopulateAddressErrors(JQueryDataTableParamModel param, bool isExport)
{
return new IssuanceSearch
{
Text = param.sSearch ?? string.Empty,
MaxRows = isExport ? Properties.Settings.Default.MaxExportRows : param.iDisplayLength,
RowIndex = isExport ? 0 : param.iDisplayStart,
SortColumn = param.sColumns.Split(',')[param.iSortCol_0],
SortDirection = param.sSortDir_0,
};
}
So basically, when I hit the GetAddressErrors method the first time, when the table is first initialized CardStockID is populated, however when I click on the Export button on the jquery datatable and hit the GetAddressErrors method again, CardStockID is no longer populated in the param.
Javascript:
$(document).ready(function () {
var oTable = $('#tblAddressErrors').dataTable({
"bJQueryUI": true,
"iDisplayLength": 25,
"bServerSide": true,
"sAjaxSource": "/Issuance/Issuance/AjaxHandler2",
"sScrollX": "100%",
"bProcessing": true,
"aoColumns": [
{ "sName": "Master_Name" },
{ "sName": "Group_Name" },
{ "sName": "household_id",
"fnRender": function (oObj) {
var householdId = oObj.aData[2];
return '<a href=\"/Household/Household/Details?householdId=' + householdId + '\">' + householdId + '</a>';
},
"bUseRendered": false
},
{ "sName": "First_Name" },
{ "sName": "Last_Name" },
{ "sName": "Pan_NR" }
],
"sDom": '<"H"Tfr>t<"F"ip>',
"oTableTools": {
"sSwfPath": "/Content/media/swf/copy_csv_xls.swf",
"aButtons": [{ "sExtends": "download", "sButtonText": "Export", "sUrl": "/Issuance/Issuance/AjaxHandlerExport2" }]
},
"fnServerParams": function (aoData) {
aoData.push(
{ "name": "cardStockId", "value": $("#CardStockId").val() }
);
}
});
});
Controller Actions:
public ActionResult AjaxHandlerExport2(JQueryDataTableParamModel param)
{
var addressErrorsExports = (from addressErrorExport in GetAddressErrors(param, true).Issuances
select new
{
MasterGroupName = addressErrorExport.Group.MasterGroupName,
GroupName = addressErrorExport.Group.Name,
HouseholdID = addressErrorExport.HouseholdId,
FirstName = addressErrorExport.Group.ContactInfo.FirstName,
LastName = addressErrorExport.Group.ContactInfo.LastName,
PAN = addressErrorExport.PanNumber.ToString()
}).ToList();
return File(addressErrorsExports.ExportToCsv(new string[0]), "application/ms-excel", "AddressErrors.xls");
}
private IssuanceResults GetAddressErrors(JQueryDataTableParamModel param, bool isExport)
{
IssuanceResults issuanceResults = new IssuanceResults();
IssuanceSearch issuanceSearch = PopulateIssuanceSearch(param, isExport);
issuanceSearch.CardStockId = param.cardStockId;
using (var householdService = _householdService.GetWrappedProxy())
{
issuanceResults = householdService.BaseObject.GetIssuanceResults(issuanceSearch, Common.Issuance.ReturnType.AddressErrors);
}
return issuanceResults;
}
private IssuanceSearch PopulateAddressErrors(JQueryDataTableParamModel param, bool isExport)
{
return new IssuanceSearch
{
Text = param.sSearch ?? string.Empty,
MaxRows = isExport ? Properties.Settings.Default.MaxExportRows : param.iDisplayLength,
RowIndex = isExport ? 0 : param.iDisplayStart,
SortColumn = param.sColumns.Split(',')[param.iSortCol_0],
SortDirection = param.sSortDir_0,
};
}
So basically, when I hit the GetAddressErrors method the first time, when the table is first initialized CardStockID is populated, however when I click on the Export button on the jquery datatable and hit the GetAddressErrors method again, CardStockID is no longer populated in the param.
↧
↧
PDF of what is currently in the table
If I were to change data in the table, after it was loaded, how would I go about telling TableTools to look at what data is currently in the table, and show that in the PDF?
↧
Tabletools are not working on local
Hello all,
can you please suggest why table tools are not working at my local PC, does it required any internet source to export data ? does it use any server ? if yes please let me know, i have download latest table tools and data-tables and seted swf path correctly but no success :(
only print button works
Here is my code :
the swf path is correctly used!
Thanks in advance
can you please suggest why table tools are not working at my local PC, does it required any internet source to export data ? does it use any server ? if yes please let me know, i have download latest table tools and data-tables and seted swf path correctly but no success :(
only print button works
Here is my code :
$(document).ready( function () { $('#example').dataTable( { "sDom": 'T<"clear">lfrtip', "oTableTools": { "sSwfPath": "media/swf/copy_csv_xls_pdf.swf" } } ); } );
the swf path is correctly used!
Thanks in advance
↧
Table tools creation with search
Dear Sir,
I am a Mechanical engineer with zero programming knowledge, can anyone suggest me how to have this done like this page for my data
http://datatables.net/extras/tabletools/
I want filtered results to be made with search option dialog box .
Data:
http://jsfiddle.net/prabuk1985/rCChX/embedded/result/
http://jsfiddle.net/prabuk1985/rCChX/
Regards,
prabu
I am a Mechanical engineer with zero programming knowledge, can anyone suggest me how to have this done like this page for my data
http://datatables.net/extras/tabletools/
I want filtered results to be made with search option dialog box .
Data:
http://jsfiddle.net/prabuk1985/rCChX/embedded/result/
http://jsfiddle.net/prabuk1985/rCChX/
Regards,
prabu
↧
Select a row by checkbox
Hello everyone,
First, here's my datatable configuration :
- Datatable 1.9.1
- ColVis 1.0.8
- TableTools 2.1.4
I make a dataTable with, in first cell of each row, a checkbox who allow us to select line. Or TableTools doesn't have option for the multi-select with checkbox.
After hours of research, the only solution I find is to make a little modification in TableTools.js. Have I legally the right to do it ?
I'm OK to share it with you and discuss about it.
Thank you.
First, here's my datatable configuration :
- Datatable 1.9.1
- ColVis 1.0.8
- TableTools 2.1.4
I make a dataTable with, in first cell of each row, a checkbox who allow us to select line. Or TableTools doesn't have option for the multi-select with checkbox.
After hours of research, the only solution I find is to make a little modification in TableTools.js. Have I legally the right to do it ?
I'm OK to share it with you and discuss about it.
Thank you.
↧
↧
Multiple TableTools not working under Chrome
Hi all, I have 3+ datatables on a single page within tabs (3 shown by default, other 4 hidden and not initialized unless clicked)
Everything works fine in Firefox or IE, however CSV, Excel, PDF and Copy (basically all swf related buttons) are not working under Google Chrome.
Flash player, chrome are all in latest releases.
I have datatable 1.9.4 installed and I have tried both tabletools 2.1.4 and 2.1.5, none of them works under Chrome.
I have done a good amount of research and fnResizeButtons doesn't solve my problem.
Data is sensitive so cannot post debug info here, sorry about that.
Please help.
Everything works fine in Firefox or IE, however CSV, Excel, PDF and Copy (basically all swf related buttons) are not working under Google Chrome.
Flash player, chrome are all in latest releases.
I have datatable 1.9.4 installed and I have tried both tabletools 2.1.4 and 2.1.5, none of them works under Chrome.
I have done a good amount of research and fnResizeButtons doesn't solve my problem.
Data is sensitive so cannot post debug info here, sorry about that.
Please help.
↧
Troubleshooting Shockwave Flash error in chrome when creating a pdf with Table Tools
Hello all,
I am in the process of troubleshooting why the internal shockwave flash in chrome crashes when we attempt to create a pdf of a table over a certain size.
When I disabled the internal SWF, we do not get any crashes.
I realize (or am guessing) that this may be a problem with Shockwave flash itself, the way we implemented the Table Tools code, or something else. I just want to see if this a well known issue or something unique to our situation.
I would appreciate some guidance on how to continue researching the problem.
This is on an internal website, so I can't provide a link.
I am somewhat a beginner at web coding, so my apologies if what I ask is well known or not quite right in how I describe it.
Thank you in advance
I am in the process of troubleshooting why the internal shockwave flash in chrome crashes when we attempt to create a pdf of a table over a certain size.
When I disabled the internal SWF, we do not get any crashes.
I realize (or am guessing) that this may be a problem with Shockwave flash itself, the way we implemented the Table Tools code, or something else. I just want to see if this a well known issue or something unique to our situation.
I would appreciate some guidance on how to continue researching the problem.
This is on an internal website, so I can't provide a link.
I am somewhat a beginner at web coding, so my apologies if what I ask is well known or not quite right in how I describe it.
Thank you in advance
↧
TableTools Hangs in FF
I really want to use the tabletools feature but for some reason in FF 17.0.1 the page hangs when loading. After about 10 seconds everything works fine. Anybody else experciening this or know how to fix it.
http://datatables.net/extras/tabletools/
Thanks
http://datatables.net/extras/tabletools/
Thanks
↧
Right justifying toolbar in header
I'm using TableTools with DataTables 1.9.4 and jquery UI. I'd like to have the TableTool buttons appear within the datatable header. For instance '<"H"flT>t<"F"ip>' only places the buttons right after the list. Thoughts?
Thanks
Jeff
Thanks
Jeff
↧
↧
Greedy buttons Table tools
See link to picture.
https://dl.dropbox.com/u/34921860/dtab/Greedy%20buttons.pdf
Moving mouse one step down causes pull-down menu to be destroyed due to the buttons below grabbing control.
I would like the users to be able to use the menus even when the dropdown overlays a buttons.
I expect other users of DataTables must have experienced this issue and can point me in the right direction on how to remedy this.
https://dl.dropbox.com/u/34921860/dtab/Greedy%20buttons.pdf
Moving mouse one step down causes pull-down menu to be destroyed due to the buttons below grabbing control.
I would like the users to be able to use the menus even when the dropdown overlays a buttons.
I expect other users of DataTables must have experienced this issue and can point me in the right direction on how to remedy this.
↧
table tools crashes for more records
Hi All,
First I would like to say thanq to the team and special to Allan,Hey its great work done.
I am using jquery datatable with table tools it works fabulous but the problem is when user fetches records some time it goes more then 20k.
But for these
Please suggest any solution.
Thanks
First I would like to say thanq to the team and special to Allan,Hey its great work done.
I am using jquery datatable with table tools it works fabulous but the problem is when user fetches records some time it goes more then 20k.
But for these
many records the table tools does't work browser says page crashed.
Please suggest any solution.
Thanks
↧
Footer Content calculated in fnFooterCallback not exported
I have a DataTable, with TableTools, where I am generating column totals in the footer using the fnFooterCallback function. While the footer content display as expected in the HTML version of the DataTables, the export to PDF (or CSV) does not include the footer data as generated in the callback.
DataTables debug bookmarklet: atamaz
DataTables 1.9.4
TableTools 2.1.4
A very basic example, with the minimal amount of code to reproduce the issue: Demonstration: http://dev-3.staging.wedu.com/ttools_test.php
my initialization and fnFooterCallback:
my html
DataTables debug bookmarklet: atamaz
DataTables 1.9.4
TableTools 2.1.4
A very basic example, with the minimal amount of code to reproduce the issue: Demonstration: http://dev-3.staging.wedu.com/ttools_test.php
my initialization and fnFooterCallback:
$(document).ready( function () { $('#example').dataTable( { "sDom": 'T<"clear">lfrtip', "fnFooterCallback": function( nFoot, aData, iStart, iEnd, aiDisplay ) { $(nFoot).append('<td>Grand Totals:</td>'); var tot = 0; for (var i=0; i<aData.length; i++) { tot += aData[i][1]*1; } $(nFoot).append('<td>' + tot + '</td>' ); }, "oTableTools": { "sSwfPath": "TableTools-2.1.4/media/swf/copy_csv_xls_pdf.swf" } } ); } );
my html
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example"> <thead> <tr> <th>String</th> <th>Int</th> </tr> </thead> <tfoot> <tr> </tr> </tfoot> <tbody> <tr> <td>One</td> <td>1</td> </tr> <tr> <td>Two</td> <td>2</td> </tr> </tbody> </table>
↧