[ExtJS] EditorGridPanel에서 Combo 한 번 클릭으로 수정하기


ExtJS 에서 EditorGridPanel을 사용하는데 꼭 두번을 클릭해야 Combo가 확장이 되는 것 이었습니다.







이런식으로 한번 클릭하면 포커싱이 되고, 두 번 클릭해야 되는 불편함 때문에 고민을 했는데...

동료 직원이 짜 놓은 소스를 보고 찾아 냈습니다.







clicksToEdit




: Number



The number of clicks on a cell required to display the cell's editor (defaults to 2).



Setting this option to 'auto' means that mousedown



on the selected cell



starts editing that cell.










http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.EditorGridPanel





EditorGridPanel 의 config 에

clicksToEdit

를 설정된 숫자 만큼 클릭을 해야 에디트가 가능하게 됩니다.








1로 설정할 경우 위와 같이 한방에 짜잔~~



댓글

가장 많이 본 글