This question is locked. New answers and comments are not allowed.
hello,
I try to set a value to a new row. I try to set a value + 1 from the last row like this :
Any suggestion will be appreciate.
I try to set a value to a new row. I try to set a value + 1 from the last row like this :
<script type="text/javascript"> function onEdit(e) { if (e.mode == 'insert') { var grid = $('#EtapesEspaceClos').data('tGrid'); var lastRow = grid.$tbody.find(' > tr:last'); var lastItem = grid.dataItem(lastRow[0]); var ZoneNoEtapeClient = $('.t-grid-new-row').find("#NoEtapeClient"); ZoneNoEtapeClient = lastItem.NoEtapeClient + 1; NOT WORKING } }</script>Any suggestion will be appreciate.