WebDatagrid三种获取值得方法javascript

HOW TO GET VALUE FROM SELECTED CELL IN WEBDATAGRID via BLOCKED SCRIPT

 

1.

on double click event you can use event args…

eventArgs.get_item().get_row().get_cellByColumnKey("column_name").get_text()

 

2.

You can reference the grid also with the sender argument if it is used in an event

sender.get_behaviors().get_selection().get_selectedRows(0).getItem(0).get_cellByColumnKey("columnname").get_text()

 

3.

You can just reference the grid directly

var grid = ig_controls["gridName"];

var value = grid.get_behaviors().get_selection().get_selectedRows(0).getItem(0).get_cellByColumnKey("column_name").get_text()

posted @ 2015-11-30 16:22  丝竹之约  阅读(337)  评论(0编辑  收藏  举报