The code copy is as follows:
onClickRow : function(rowIndex, rowData){
var editor = $('#datagrid').datagrid('getEditor', {index:rowIndex,field:"buyNum"});
editor.target.focus();
}
Click a line and place the cursor in the editing box while opening the editing box.
rowIndex: It is the row index of the current page of the edit box, starting from 0;
buyNum: is the name of the field that opens the edit box.
The above is a little tip for my personal summary, I hope you like it.