JqGrid view-column in editGridRow-mode
is there a way to define a column in modalDialog as view-column (without any input element开发者_如何学编程s, neither editable nor saveble)? Or does it work only through edittype:'custom'
?
My setup is there:
http://babiychuk.com/demo/en/catalog/index/c_picture
jqGrid use $.jgrid.createEl
method to build elements for any types of editing inclusive form editing (the function editGridRow). How you can see in the source code of the function createEl it use <input>
, <select>
, <button>
, <textarea>
or <span>
elements for the "input" part of the form dialog. The choose depend on the edittype of the corresponding jqGrid column.
So you have to either to use edittype:'custom' to have <span>
element or you can try to modify form elements inside of your beforeShowForm event handler.
精彩评论