Okay
  Public Ticket #1954745
Changing the order way Columns are displayed.
Closed

Comments

  • Omar started the conversation

    I'm trying to have columns 2-7 of my wpDataTable display under column 1 instead of displaying in line next to it.

    In the example URL. You see the seven columns displayed across horizontally.

    The attached image is an example of what I'm trying to accomplish.

    Thanks!

  •  2,572
    Aleksandar replied

    Hello Omar.

    I believe this could be achieved with the responsive feature. Please make sure to view the video in the attached link, so you're able to replicate the look and feel on desktops as well as on tablets and mobiles.

    I must say, though, that users will have to click on the "+" sign to expand the row. Maybe it can be set to auto-expand, but please note that this is considered customization of the plugin, and doesn't fall under included support of the plugin.

    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

  • Omar replied

    I think you've misunderstood my question.

    Looking at my link, notice how the icons are shown next to the column with the name of the dish and the description.

    Now look at the image I attached. I want to simply change where the icons from columns 2-7 are displayed, moving them below the dish name and description.

    Currently everything is displaying like this:

    Item 1-Column1, Item 1-Column2, Item 1-Column3, Item 1-Column4, Item 1-Column5, Item 1-Column6, Item 1-Column7

    Item 2-Column1, Item 2-Column2, Item 2-Column3, Item 2-Column4, Item 2-Column5, Item 2-Column6, Item 2-Column7

    Item 2-Column1, Item 2-Column2, Item 2-Column3, Item 2-Column4, Item 2-Column5, Item 2-Column6, Item 2-Column7


    I want to change it to this:

    Item 1-Column1

    Item 1-Column2, Item 1-Column3, Item 1-Column4, Item 1-Column5, Item 1-Column6, Item 1-Column7

    Item 2-Column1

    Item 2-Column2, Item 2-Column3, Item 2-Column4, Item 2-Column5, Item 2-Column6, Item 2-Column7

    Item 3-Column1

    Item 3-Column2, Item 3-Column3, Item 3-Column4, Item 3-Column5, Item 3-Column6, Item 3-Column7



  •  2,572
    Aleksandar replied

    Hi Omar.

    I understood what you're trying to achieve, it's just that the table can't behave this way by default. You would have to move the icons to a new row to achieve this.

    You have this:

    5406042612.png

    So, you have those icons in the same row.

    That is why I suggested the responsive feature, where those icons would be moved to a new row automatically. The plugin deals with tables in a simple manner - one row displays in one row and cannot be split into two. No matter how wide you set the table to be - it's either going to wrap the text, or display it to a certain point, then add "..." at the end (showing it has some more data which cannot be displayed). Other option would be to make the table scrollable, but again - it can't split an existing row in two.

    You would have to manually move the icons to a new row, or try the responsive feature.

    But, looking at your image again - you would have to add the images in a single cell, because looking at this:

    1117050197.png

    would mean the two text rows above would have to be in merged cells - which are not supported by wpDataTables.

    I hope this helps.

    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