As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #1013393
Add/move rows to specific place
Closed

Comments

  •  2
    Dima started the conversation

    I do not seem to find a way to:

    1) Create new row at specific position, lets say, for example, as first row of table.

    2) Move existing row to another place like higher or lower than it is.

    Thanks

  • [deleted] replied

    Hi Dima,
    Thank you for your purchase.

    The row ordering is done according to the chosen sorting column (first one / wdt_ID by default). You can define a column for positioning (e.g. ‘pos’, as integer, with values 1, 2, 3), and use it as a default sorting column.

  •  2
    Dima replied

    Are you suggesting adding another column with integers as sorting column, and then edit/change the numbers to change positions of rows? Is there no drag and drop interface?

  • [deleted] replied

    Hi Dima,

    Yes I suggest you to add integer sorting column as a workaround because unfortunately we don't have drag and drop feature at this moment.

  •  2
    Dima replied

    Ok, so I did that. It works, not perfect, since if I enter a same number from middle of the table it inserts the row after it, but does not rearrange the numbers. But its manageable.

    My question is, how when creating new row, the number will always be the last + 1 , and then the user may change it if he needs to. But there must be a number and I can't ask the client to llok what is the last rows number and to enter it +1.

    Thanks

  • [deleted] replied

    Hi Dima,

    My question is, how when creating new row, the number will always be the last + 1 , and then the user may change it if he needs to. But there must be a number and I can't ask the client to llok what is the last rows number and to enter it +1.
    Maybe you can try to set auto increment for this number, but if user will change this number then it can mess up this column.