jqGrid的。自定义“添加/编辑”对话框窗体

时间:2011-09-14 20:58:38

标签: 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", 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}}     ],
….

我需要修改我的编辑/添加对话框表单 当我添加:分支和评论可用 编辑时:分支已禁用,只能修改注释

这两个动作都使用相同的方法 我怎么知道如果我正在编辑或添加以隐藏/显示字段?

谢谢

0 个答案:

没有答案
相关问题