coyote999
Posts: 22
|
| Posted: 09/29/2011, 9:39 AM |
|
Dear Codecharge-Users,
is it possible to show the empty row in an editable grid on the first line, instead of the end of table?
Many thanks and greetings from germany
Martin
|
 |
 |
CodeChargeMVP
Posts: 473
|
| Posted: 10/23/2011, 1:51 AM |
|
I think it should be possible, but by get this I think shall be re program the php code on the php section related to the edit grid.
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
roeya
Posts: 181
|
| Posted: 10/23/2011, 3:19 AM |
|
We do the requested feature (empty row first) using jQuery:
give the editable grid table an id called editable and use jQuery to find the row before the last one
take it out and insert it back as the first row
$(document).ready(function () {
$('table#editable').each( function () {
last_row_index = $('table#editable>tbody>tr').size() - 2;
$('table#editable>tbody>tr').eq(last_row_index).remove().insertAfter($('table#editable>tbody>tr').eq(0));
});
});
_________________
http://www.infoneto.com/ |
 |
 |
|