1. 程式人生 > >Extjs4.1:grid選中指定行

Extjs4.1:grid選中指定行

										var grid_jkdlb = Ext.getCmp('grid_jkdlb_id');
										if (grid_jkdlb)
										{
											alert('find grid_jkdlb');
										}


										var model = grid_jkdlb.getSelectionModel(); 

										model.selectRange(1,1);//選擇第一行