Okay
  Public Ticket #1839519
hidden columns, 2 problems
Closed

Comments

  • PrzemyslawGumulka started the conversation

    I have two problems with hidden columns:

    1. When I press "+" button, the whole table loses shape. Why do basic rows change size? As you can see in the given link, width of the hidden rows (after displaying them) is different than the rest of the table. I enclose screenshots, before and after. Some columns become narrower, the text doesn't fit anymore, gets displayed in multiple rows. As a result the now un-hidden columns display in a different place on a monitor that user was looking at. It is a horrible experience and can't be like that.

    EDIT: when turned off "server side processing" problem disappeared. How is it possible?

    EDIT2: now problems are even bigger. I am stopping to make any further changes. At this point I can't turn off "server side processing". When I do that and try to save, it just keeps coming back. The column that was sat as "group column" (Województwo) is now beeing displayed as both group and ordinary (!). What is more, I can't change it, the option "group column" is not available. So many bugs, just after a couple of hours of using this plugin.. :/

    2. On the same table, some "group column" rows are yellow, some not. If I use "+" on the row above the grouping row, then it becomes yellow. I used CSS you suggested in another ticket:

    td.group {
        background-color: #FFFCD7;
    }

  •  2,572
    Aleksandar replied

    Hello again PrzemyslawGumulka.

    As I said in the previous ticket, I'd need remote access to take a look at these issues.

    You've encountered a paradox there in one case - Row grouping doesn't work with server-side processing, as it has been described in our documentation, so I don't know how You even got it to work.

    Now, going forth, I see that it did eventually disappear when server-side got enabled which is a default behavior for wpDataTables.

    Also, server-side gets turned on automatically after some 2 or 3.000 rows have been added, so it can't be turned off once You go past that threshold, and I see You have around 5.000 entries.

    Again, to take a look at the custom color for grouping I'd need remote access.

    Thank You for Your understanding, and thank You for Your patience. We'll try to resolve the issues You're having and make the plugin work as expected, or (if that is not possible with the built-in features) find some workarounds.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • PrzemyslawGumulka replied

    Hi,

    in the other ticket I gave You access, please use it. I still see "group columns" as both group and normal one, even thou server processing is on. Problem with colors remains. However, currently problems with reshaping of the table disappeared, that is unfortunate, maybe I will encounter it another time and write a new ticket.

  •  2,572
    Aleksandar replied

    Hello again, PrzemyslawGumulka.

    I can only assume there is a conflict with some plugin, or maybe the theme You're using.

    Nonetheless, I believe I found the solution for the abnormal width of the expanded column. For some reason, there was this line on the page:

    table.wpDataTable {
       table-layout: fixed !important;
    }

    and that was causing the issue. I added some custom CSS in Your main Settings and it should be fine now:

    .wpdt-c table.wpDataTable {
        table-layout: auto !important;
    }
    

    Also, I just added the .wpdt-c in front of the code You used for grouped rows, and I believe that solved the issue with the rows taking the yellow color from the grouped row (see attachment).

    .wpdt-c td.group {
        background-color: #FFFCD7;
    }
    

    Please check the table and the page, and let me know if everything is OK now. I left the "Dolnośląskie" column to be the second one, just so Collapsing would work and for me to be able to troubleshoot the issues You're having.

    I'll take a look at the other tickets You've opened and respond to them as well.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  2,572
    Aleksandar replied

    Also, forgot to mention.

    If row grouping is a "Must-Have" and Your table becomes so large that Server-side processing turns on automatically, please try this:

    To enable Row grouping for serve-side you have to make some changes in file /plugins/wpdatatables/assets/js/wpdatatables/admin/table-settings/main.js around line 941

    wpdatatable_config.columns[i].groupColumn = 0;
    

    Just make comments like in code below 

    // wpdatatable_config.columns[i].groupColumn = 0;
    

    Please note that after the update of the plugin you will need to change this file again.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • PrzemyslawGumulka replied

    Thank You. I am posting tickets not because I can't fix my tables, I will manage. I am posting tickets, because there are some problems. Somehow server side table didn't turn off group column and it became inaccessible. And somehow many rows had bad colors. This should work properly without custom css or other coding.

  •  2,572
    Aleksandar replied

    Hello again PrzemyslawGumulka.

    I don't know what happened when it comes to server-side/grouping feature. It should automatically disable the grouping feature. When I logged in, I saw that server-side has been turned off, and I didn't want to change any settings on Your tables without Your permission.

    Row colors was probably being mixed because .wpdt-c was absent from the custom CSS. It applies the CSS to the entire wpDataTables content on the page, and maybe it had applied the color to the position instead of fixing it to the grouped row.

    The problem should be fixed now, correct?

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables