如何获取网格项值 [英] How to Get Grid Item values

查看:138
本文介绍了如何获取网格项值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于DataGrid,我触发onRowClick()事件以检索单击行的数据值。但是,我找不到访问Grid的单元格的方法。谢谢,如果你可以分享你的经验。

For a DataGrid, I fire a onRowClick() event in order to retrieve the data values of the row clicked. However, I can't find the method to access to the cells of the Grid. Thanks if you can share your experience.

<table dojotype="dojox.grid.DataGrid" id="grid2" noDataMessage="No results found in the current map extent" style="height:250px; overflow:scroll; font-size:smaller;" selectionMode="single" />
  <thead>
    <tr>
      <th field="OBJECTID" width=25px >Id</th>
      <th field="STATION" width=120px  >Location Site</th>
      <th field="FULLADDRESS"  width=170px  >Address</th>
    </tr>
  </thead>
</table>
...
function GetItemFromGrid(e) {
   ... 
}

推荐答案

这将帮助你

如何在javascript中迭代表行和单元格? [ ^ ]


这篇关于如何获取网格项值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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