[英]How to avoid horizontal scroll on single click cell editing in free jqgrid
[英]How to start inline editing on single click in checkbox column in free jqgrid
我正在尋找一種方法,如果在復選框列中單擊,則可以在jree jqgrid中開始內聯編輯。
目前,我正在使用ClickableCheckBoxFormatter
http://www.ok-soft-gmbh.com/jqGrid/Checkbox.htm
描述於
和在
如果通過單擊編輯在jqGrid中使用Oleg clickableCheckboxFormatter,如何解決javascript異常
我嘗試了免費的jqgrid復選框格式化程序。
問題:
如何解決這些問題,使復選框的行為類似於ClickableCheckBoxFormatter:
該演示 (您用作參考)使用禁用的復選框作為格式化程序:
{ name: "closed", width: 70, align: "center", editable: true, formatter: "checkbox",
edittype: "checkbox", editoptions: {value: "Yes:No", defaultValue: "Yes"},
stype: "select",
searchoptions: { sopt: ["eq", "ne"], value: ":Any;true:Yes;false:No" } }
這是問題的根源。 我建議您使用booleanCheckboxFa
代替:
{ name: "closed", width: 70, template: "booleanCheckboxFa" },
例如在演示中,或者至少在舊的formatter: "clickableCheckbox"
:
{ name: "closed", width: 70, align: "center", formatter: "clickableCheckbox",
edittype: "checkbox", editoptions: {value: "true:false", defaultValue: "false"} }
喜歡演示 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.