var grid = this.comp('grid1');
 grid.$domNode.jqGrid("getRowData").length;//行数
 grid.$domNode.jqGrid("getDataIDs");//行id