簡體   English   中英

如何從Javascript中的一行獲取包含WebDataGrid(Infragistics NetAdvantage)控件?

[英]How to get the containing WebDataGrid (Infragistics NetAdvantage) control from a row in Javascript?

選擇了一行后,我就成功地獲取了所選行:

var currentRow = sender.get_behaviors().get_selection().get_selectedRowsResolved()[0];

是否有JavaScript函數可獲取該行的父WebDataGrid? 像這樣:

var grid = currentRow.get_parentGrid();

謝謝

帶有:

var grid = currentRow.get_parentGrid();

您將訪問父行對象,但是要訪問父網格,您需要調用:

var grid = currentRow.get_parentGrid().get_grid();

我找到了解決方案,它非常簡單:

currentRow.get_grid()

它為您提供父網格。

感謝大家!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM