2
如何控制選擇輸入類型的寬度? 這是我的代碼:jqgrid選擇輸入寬度
{name:'code',index:'code', width:60, sorttype:"int" ,
editable:true, edittype:"select",editoptions: {value:"1:11;2:22"}
感謝提前。
如何控制選擇輸入類型的寬度? 這是我的代碼:jqgrid選擇輸入寬度
{name:'code',index:'code', width:60, sorttype:"int" ,
editable:true, edittype:"select",editoptions: {value:"1:11;2:22"}
感謝提前。
您可以在editoptionsdataInit
功能列表中插入設置您需要的寬度的功能。例如
editoptions: {
value:"1:11;2:22",
dataInit: function(elem) {
$(elem).width(50); // set the width which you need
}
}