editGridRow-mode中的JqGrid视图列

时间:2011-02-01 20:04:37

标签: jqgrid

有没有办法将modalDialog中的列定义为view-column(没有任何输入元素,既不可编辑也不可保存)?或者它只能通过edittype:'custom'

我的设置在那里:

http://babiychuk.com/demo/en/catalog/index/c_picture

1 个答案:

答案 0 :(得分:0)

jqGrid使用$.jgrid.createEl方法为包含form editing的任何类型的编辑构建元素(函数editGridRow)。如何在the source code of the function createEl中看到它使用<input><select><button><textarea><span>元素作为“输入”部分表格对话框。选择取决于相应jqGrid列的edittype

因此,您必须使用edittype:'custom'来拥有<span>元素,或者您可以尝试修改beforeShowForm事件处理程序中的表单元素。

相关问题