aralize
Forum Replies Created
-
Hi Peter,
Indeed, I had seen this option but I do not have the Premium version of the plugin.
Another alternative for me is to set a default table element, which says to do a search, but the line of code below only works once.“search”: {
“search”: “42100”
}I have also tried limiting the display to 1 row for the table, but the line of code does not work.
“pageLength”:1
Thanks in advance
- This reply was modified 4 years, 4 months ago by aralize.
Hi Peter,
With these options it works, I put “orderable: true” for each column individually.
Thanks a lot for your help !
Best regards,
Aralize.Hi Peter,
I need to remove the sorting only on the first column, not on the other columns.
This function will remove the sorting on all the columns.Thanks.
Best regards.Hi again,
However, by removing “ColumnDef” I can no longer prohibit sorting on the first column.
I have tried adding the following CSS code to hide the images from the cursors:
table.wpda-datatable th.IMG.sorting_asc {
background-image:none;
}table.wpda-datatable th.IMG.sorting_desc {
background-image:none;
}
But the images appear again if I click on another column to sort …Thanks.
Hi Peter,
Perfect, it works! Thank you so much !
I replaced “#BDD2” with “table.wpda-datatable” so that the property applies for all tables (which will be similar).
Good day.
Hello,
I (finally) solved the problem! This comes from the first column with the images whose HTML code is in the database. I added the “width” command for the images stored in the database and put the table in “Flat” mode.
I think this problem is over, I have tested on different devices and browsers, it seems stable.Thank you to all of you for your support!
I also changed the website (it’s a free host for my tests): https://testbrick2.000webhostapp.com/
Best regards,
AralizeTo solve the problem, I have to set up the function : https://datatables.net/reference/api/columns.adjust()
but I don’t know which file to use it in, or how to make it work with the plugins tables.Hi Peter,
It is not necessary to put a default sort.
The problem is that you must sort the table at least once when loading is complete, in order to align the title bar (thead) with the body (tbody).
Something must be set up to align the column titles and the body of the table from the first load of the table.`
Thanks.
Hi again,
With my latest modifications, it’s almost good. So that everything is correctly aligned (head and body of the table) you have to click a first time on the sort of columns.
Is there a solution to avoid this manipulation? Do a new ordering automatically after the first load of the table?My parameters currently :
{ "dom":"lfrtp", "rowReorder": true, "ordering": true, "scrollX":true, "columnDefs": [ {"className": "dt-center", "targets": "_all"}, { "orderable": false, "targets": 0 } ], "order": [ 0, "asc" ] }Output : responsive
Number Of Columns : 9 (if I put 0, it does not display all the columns)
Type : modalThanks again.
Aralize
Hi,
Yes, I returned to “flat” to test. I just put in “Responsive”.
Where should I put this line of Jquery code? In which file exactly?Thanks.
I think it is necessary to use the function of “responsive.recalc” but I have no idea how to set this up …
https://datatables.net/reference/api/responsive.recalc ()A similar problem: https://stackoverflow.com/questions/33312096/datatable-columns-dont-line-up-with-scroll-bars
Hi,
Yes, indeed I saw that, but if we want to order the data according to the columns which are not displayed, this system does not work.
Isn’t there a possibility to put a bar for the horizontal scroll?Peter,
No it’s not good, the display of several columns is missing.
Whether on a computer or even on a “real” phone.
I also tried with several internet browsers and cleared the caches.Best regards,
Hello Peter,
With this setting, there is no more overflow, but a column is missing on a computer display and 7 columns on a smartphone.
Therefore, it is necessary that I put a horizontal scrollbar, but it causes the problem with the icons for sorting the columns.Thanks.
Aralize.
Hi Peter,
I tried again and the problem occurs when I check the option “allow ordering” and add the command to get an scroll X.
If I don’t put scroll X, I don’t have this problem, but the table is way too wide on both PC and smartphone. You can see this currently on the site.
I tried several advanced options for the scroll:
-scrollX : true
-scrollX : “800px”Maybe I’m making a mistake in the advanced scroll X command?
Currently I put this (in table options advanced in data publisher of the table) and I plan to add this command to the line below :
{
“dom”:”lfrtp”,
line for the scroll X command
}Thanks.