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

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

问题描述

在要进行form_editing的jqGrid文档中,我看到了 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>

我可以更改此构造吗?

这对我来说是必要的,因为我的表单中的列太多,无法编辑,并且我想以最用户友好的方式显示该表单. 例如,当我在表格中有20列要编辑时.我的表格有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.

推荐答案

演示演示了如何更改创建的标准编辑表单通过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天全站免登陆