• Resolved mariesmc

    (@mariesmc)


    Hello Tobias

    I am using the row details plugin but when I add a custom definition to the table, all my row details show twice – once in the original row and then again as a child row. Have you ever heard of this happening?

    I’d like to apply the sorting plugin for european dates in a table with row details, but the custom definition removes the formatting for some reason. Any ideas?

    Thank you
    mariesmc

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The Row Details Extension also uses “Custom Commands”, so there is potential for a conflict. To find out what the problem is, I’d need to see the table. Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter mariesmc

    (@mariesmc)

    Thanks Tobias

    Here is the table: https://bit.ly/2fv8SLB

    password is tobias

    This is what I am trying to accomplish

    1. hidden, but searchable columns using:

    .tablepress-id-tobias .column-9,
    .tablepress-id-tobias .column-10,
    .tablepress-id-tobias .column-16,
    .tablepress-id-tobias .column-17,
    .tablepress-id-tobias .column-20,
    .tablepress-id-tobias .column-23 {
    display: none;
    }

    2. row details, table shortcode is:

    [table id=tobias responsive=scroll datatables_row_details=true datatables_row_details_columns=”C,D,G,O,R,S,U,V” /]

    3. custom dates with a hidden sorting column, for example column 1 has ??-Jul-1978, column 2 has 7/1/1978

    `”columnDefs”: [ { “visible”: false, “targets”: [ 8,19 ] }, { “orderData”: [ 8], “targets”: [ 7] }, { “orderData”: [ 19 ], “targets”: [18] }]

    Can all of this be combined to a Custom Definition?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for the link and the “Custom Commands”. There’s indeed a small conflict, so that we’ll basically have to embed the Row Details’ “Custom Command” into yours.
    The Row Details Extension (in your specific scenario, defined by the Shortcode parameters) uses
    "columnDefs":[{"orderable":false,"targets":[0]},{"visible":false,"targets":[3,4,7,15,18,19,21,22]}]
    The combined/merged version would be this:
    "columnDefs":[{"orderable": false, "targets":[0]},{"visible": false, "targets":[3,4,7,8,15,18,19,21,22]}, {"orderData": [8], "targets": [7]}, {"orderData": [19], "targets": [18]}]
    Please try that as your new “Custom Command”.

    Regards,
    Tobias

    Thread Starter mariesmc

    (@mariesmc)

    Tobias

    This worked great! Thanks!

    Marie

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Defs incompatible with row details?’ is closed to new replies.