2011-03-01 7 views
2

어떻게 선택 입력 유형의 너비를 제어 할 수 있습니까?jqgrid 입력 폭 선택

{name:'code',index:'code', width:60, sorttype:"int" , 
editable:true, edittype:"select",editoptions: {value:"1:11;2:22"} 

감사의 사전 : 이 내 코드입니다.

답변

4

너비를 설정하는 editoptionsdataInit 기능 목록에 삽입 할 수 있습니다. 예 :

editoptions: { 
    value:"1:11;2:22", 
    dataInit: function(elem) { 
     $(elem).width(50); // set the width which you need 
    } 
} 
관련 문제