开发者

JqGrid view-column in editGridRow-mode

开发者 https://www.devze.com 2023-02-08 12:11 出处:网络
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\'?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消