Jquery JqGrid。自定义添加/编辑对话框窗体
我是JqGrid的新手!!! 和。。我正在尝试调整lil的基本形式 我读了很多评论,但是我没有找到任何关于我的案例的东西 我的表有这部分代码Jquery JqGrid。自定义添加/编辑对话框窗体,jquery,jqgrid,customization,Jquery,Jqgrid,Customization,我是JqGrid的新手!!! 和。。我正在尝试调整lil的基本形式 我读了很多评论,但是我没有找到任何关于我的案例的东西 我的表有这部分代码 …. colNames:['Deployment id','Branch', 'Release Name','Client id','# of hosts','Comments',''], colModel :[ {name:'deployment_id',index:'deployment_id',align:"right", sorttype:"int
….
colNames:['Deployment id','Branch', 'Release Name','Client id','# of hosts','Comments',''],
colModel :[
{name:'deployment_id',index:'deployment_id',align:"right", sorttype:"int", width:120},
{name:'branch',index:'branch',align:"center", editable: true,edittype:"select",editoptions:{value:"1:valor1;2:valor2;3:valor3"}},
{name:'release_name',index:'release_name',align:"center"},
{name:'client_id',index:'client_id',align:"right", sorttype:"int", width:60}, {name:'num_hosts',index:'num_hosts',align:"right", sorttype:"int", width:60},
{name:'comments',index:'comments',align:"center", editable: true,edittype:"textarea", editoptions:{rows:"2",cols:"20"}},
{name:'myac', width:80, fixed:true, sortable:false, resize:false, formatter:'actions',formatoptions:{keys:true}} ],
….
我需要修改我的编辑/添加对话框表单,以便
添加时:分支和注释可用
编辑时:“分支”处于禁用状态,只能修改注释
两个操作使用相同的方法
如何知道我是否正在编辑或添加以隐藏/显示字段
谢谢你看。我希望它能帮助你。非常感谢你!!!这就解决了我的问题!!:)