如何访问jqGrid行的字段? [英] How to access the fields of a jqGrid row?

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

问题描述

假设我有以下内容(为简化起见,简称:)

Suppose I have the following (shortened for simplicity):

jQuery("#grid").jqGrid({
    ...
    ondblClickRow: function(rowid) {
        // I want to access the fields of the double-clicked row in here
    }
    ...
});

在ondblClickRow事件中,我想访问该行的字段.

Inside the ondblClickRow event, I want to access the fields of the row.

这是怎么做的?

推荐答案

使用rowid参数和列索引调用getCell方法.
请参见文档.

Call the getCell method with the rowid parameter and a column index.
See the documentation.

这篇关于如何访问jqGrid行的字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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