Solved

change add new row position

  • 12 July 2023
  • 2 replies
  • 61 views

Badge +5

Hello,

how I can change the position of the new row on the top instead of down.

 

icon

Best answer by NicS 17 July 2023, 12:04

View original

2 replies

Userlevel 2
Badge +7

Out of the box this is not possible. You could probably do it with JavaScript.

I would recommend that you add an Add New Row toolbar button to the top of the list view and show a new row when it is clicked. Disable the Enable Add new row link button from the Settings 

 

 

Userlevel 3
Badge +9

Chuck this in a data label on your list view.  It’ll look strange though as the new row is the same colour as the first datarow.


var actionRow = $('tr.action-row');

var tableGrid = $('.grid-content-table tbody');

actionRow.detach();

tableGrid.prepend(actionRow);

Cheers

Reply