Need to implement default print button into datatable

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Need to implement default print button into datatable.

I want to implement print button that datatable provided into their demo that as below:
https://datatables.net/extensions/buttons/examples/print/simple.html


now anyone help me that how i implement this into nopcommerce?
Thanks in advance.
4 years ago
This needs to change in multiple files. You can start with Table partial view of admin area.
4 years ago
First of all please add all js related to pdf and excel export from datatable website into admin layout view file. then  open _Table.Definition.cshtml file and
@if (Model.RefreshButton) block to  below code
<text>
        buttons: [
        'excel', 'pdf',
        ],
    </text>


and run your project. export excel and pdf work
4 years ago
sangeetshah wrote:
First of all please add all js related to pdf and excel export from datatable website into admin layout view file. then  open _Table.Definition.cshtml file and
@if (Model.RefreshButton) block to  below code
<text>
        buttons: [
        'excel', 'pdf',
        ],
    </text>


and run your project. export excel and pdf work



superb sangeet shah

+1
3 years ago
sangeetshah wrote:
First of all please add all js related to pdf and excel export from datatable website into admin layout view file. then  open _Table.Definition.cshtml file and
@if (Model.RefreshButton) block to  below code
<text>
        buttons: [
        'excel', 'pdf',
        ],
    </text>


and run your project. export excel and pdf work

I Add all js but not worked. Please help
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.