I have add a row where user select row,
this is my code,( I provide JQX menu)
if ($.trim($(args).text()) == “Insert Row”) {
debugger;
var args = event.args;
var selectedRowindex = $(“#jqxBoqgrid”).jqxGrid(‘getselectedrowindex’);
var DestinationRowIndex = selectedRowindex + 1;
$(‘#jqxBoqgrid’).jqxGrid(‘addrow’, selectedRowindex, {}, DestinationRowIndex);
}
I can add row any place, but when I edit this row, next row also replaced , I have several drop downs on row and when change these rows only automatically replaced next row record)
( …………..
geteditorvalue: function (row, cellvalue, editor) {
var unitItem = editor.jqxDropDownList(“getSelectedItem”);
return unitItem.label;
)
I am really appreciated if you can help me to solve this issue. Client wants to add row anywhere to grid and I should keep a sequence when print report