jqGrid - 如何修改 form_editing 构造? [英] jqGrid - How to modify form_editing construction?

查看:9
本文介绍了jqGrid - 如何修改 form_editing 构造?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 jqGrid 的 form_editing 文档中,我看到了 form_editing 已构建.

In the jqGrid documentation to form_editing, I see how the form_editing is constructed.

<form ...>
    <table>
        <tr id='tr_myfield'>  
          <td> Caption</td> 
          <td>edited element named, in colModel, as "myfield"</td> 
        </tr> ... 
    </table> 
</form>

我可以改变这个结构吗?

Can I change this construction ?

这对我来说是必要的,因为我的表单中有太多要编辑的列,我想以最用户友好的方式显示表单.例如,当我的表中有 20 列要编辑时.我的表格中有二十行.但我会为两列获得一行.我知道每一行都是通过它们的索引来标识的,所以我不能在同一行中只有两列.但如果可以伪装,请确保它让我开心^^(例如,两个表和一个相似的 id 或我不知道的 form_editing 参数......)

It's necessary to me because I have too many columns to edit in my form and I want to display the form in most userfriendly way. E.g when I have twenty columns to edit in my table. I have twenty rows in my form. But I would obtain one row for two columns. I understood that each rows are identifying by their index, so I can't just have two columns in the same row. But if it's possible to faking it, be sure it's make me happy ^^ (e.g with two tables and a similar id or with form_editing parameters that I don't know ...)

PS : 对不起我的英语不好.

PS : Sorry for my bad English.

推荐答案

formoptions 这对你有帮助.

There are rowpos and colpos properties of formoptions which would be helpful for you.

演示演示了如何更改创建的标准编辑表单通过 jqGrid 到以下

The demo demonstrate how you can change the standard editing form created by jqGrid to the following

如果我理解纠正您的问题,rowposcolpos 的使用可能对您的情况非常有帮助.

If I understand correct your problem the usage of rowpos and colpos could be very helpful in your case.

这篇关于jqGrid - 如何修改 form_editing 构造?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆