jqGrid设置内联编辑输入框属性

jqGrid set the attribute of inline edit input box

本文关键字:输入 属性 编辑 设置 jqGrid      更新时间:2023-09-26

我们正在使用jqGrid免费版本4.13.5,内联编辑是启用的。

我想将输入属性dir设置为auto,并为输入设置一个类。

根据http://www.trirand.com/jqgridwiki/doku.php?id=wiki:common_rules我发现网格有edittype:'custom', custom_elementcustom_value功能应该实现,

我想知道jqGrid的新版本是否有更好的方法(不需要custom编辑类型)

如果我正确理解你的问题,那么你只需要使用带有属性的editoptions,你需要在内联编辑的<input>上设置:

editoptions: { dir: "auto", "class": "someClassName" }