jqgrid选择输入宽度
如何控制选定输入类型的宽度? 这是我的代码:jqgrid选择输入宽度,jqgrid,Jqgrid,如何控制选定输入类型的宽度? 这是我的代码: {name:'code',index:'code', width:60, sorttype:"int" , editable:true, edittype:"select",editoptions: {value:"1:11;2:22"} 提前感谢。您可以在dataInit函数列表中插入设置所需宽度的函数。比如说 editoptions: { value:"1:11;2:22", dataInit: function(elem)
{name:'code',index:'code', width:60, sorttype:"int" ,
editable:true, edittype:"select",editoptions: {value:"1:11;2:22"}
提前感谢。您可以在
dataInit
函数列表中插入设置所需宽度的函数。比如说
editoptions: {
value:"1:11;2:22",
dataInit: function(elem) {
$(elem).width(50); // set the width which you need
}
}