I have a grid where selectionmode = multiplecellsadvanced. it is set to this so I can use the keyboard naviagation, advancing thru the cells using left and right arrow keys.
I have a button to add rows. When I call the method ‘addrow’, it works, a new row is added. But I cannot get that row to be selected ( also when it is created on page 2, and currently viewing page 1 of the grid).
Below is my Addrow function:
$(“#addrowbutton”).bind(‘click’, function () {
if( ! ($(‘#addrowbutton’).attr(“disabled”)) )
{
var rowscount = $(“#jqxgrid”).jqxGrid(‘getdatainformation’).rowscount;
var datarow = generaterow(rowscount + 1);
$(‘#jqxgrid’).jqxGrid(‘addrow’, null, datarow);
// either of the two calls below does not work
// where columnname is the column I want to start editing. it is not selected
$(‘#jqxgrid’).jqxGrid(‘selectcell’, rowscount, ‘columnname’);
$(‘#jqxgrid’).jqxGrid(‘selectrow’, rowscount);
}
});