2014-11-23 5 views
0

GridPanel1이라는 이름의 GridPanel과 GridPanel의 선택된 행을 제거하는 버튼이 있습니다. ext 버튼을 클릭하여 선택한 행 ID를 얻고 싶습니다. directMethod. 내 코드 :GridPanel의 선택된 행 ID를 얻는 방법

var removeEmployee = function() { 
    // CompanyZ.Delete(id); // Here I need the GridPanel selected row id 
    console.log(mygrid); 
} 

아무도 도와 줄 수 있습니까?

답변

0

사용하십시오 :

grid.getSelectionModel().getSelection()[0].getId()