1. NaN paging num for "All"; 2. Custom "title" isn't taken by ExportHTML5 :: Stand provided

1. NaN paging num for "All"; 2. Custom "title" isn't taken by ExportHTML5 :: Stand provided

musinikmusinik Posts: 22Questions: 5Answers: 1
edited January 2016 in Free community support

Good day!

I have two little problems:

1. The paging numbers become NaN for the "All" position. However if I check JSON resonse at the same time, counting figures are in place and are correct.
As a temporary solution I just put 10000 =).
I saw in the forum other users also had problems with that for some reasons.

Here are my Settings:

"lengthMenu": ((mobile)?[7, 10, 25, 50, 10000, "All"]:[10, 25, 50, 100, 10000, "All"]),

2. Second thing is - -inin title doesn't work for exported Excel files.

        buttons: [
            {
                extend: 'excelHtml5',
                text: '<input id="download" type="image" class="btn btn-black" src="/modules/datatables/images/download.png" title="Сохранить отображаемые записи">',
                exportOptions: {
                    columns: [ 1,12,13,15,16,17,18,19,20,6,7,8,9,10,11,22 ],
                    title: "Заказы"
                }
            }
        ],

I even found it... oh bloody where was that... Aha! Got it! :)))

table.context[0]._buttons[0].inst.c.buttons[0].exportOptions.title

And I see the value here, but it's not picked up by the export mechanism. Export just gives the standard name from the page title.

Here's the test stand (everyone can play :)) ):

http://kalyanman.ru/index.php
datatables:datatables

I hope you won't have problems with language :).

Regards,
Nikita.

Answers

This discussion has been closed.