如何在WebTab上找到WebDataGrid [英] How Do I Find WebDataGrid on WebTab

查看:79
本文介绍了如何在WebTab上找到WebDataGrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里变得非常沮丧。我试图获取已放置在Infragistics WebTab上的Infragistics WebDataGrid的引用? (在JavaScript中)如果网格不在WebTab上而不在WebTab本身内,我可以获得正确的对象引用。例如,这在WebTab控件之外工作:



Getting really faustrated here. I trying to grab a reference to Infragistics WebDataGrid that has been placed on a Infragistics WebTab? (in JavaScript) I can get the correct object reference if the grid is not located on a WebTab but not within the WebTab itself. For example this works outside of the WebTab control:

var grid = $find("wdgViews"); // works if grid is outside of webtab

// Get active row
var activeRow = grid.get_behaviors().get_activation().get_activeCell().get_row();

cell = activeRow.get_cellByColumnKey("ViewName");

ID = String(cell.get_value());





但是在WebTab控件中不起作用。我已经能够接近以下但是WebDataGrid的方法在那里我无法获得activeRow或Cell。





But won't work within the WebTab control. I've been able to come close with the following but WebDataGrid's method are not available there I cannot get the activeRow or Cell.

var webTab = $find("WebTab1");
var grid = webTab.getTabAt(1).findChild("wdgViews");

  // Get active row
  var activeRow = grid.get_behaviors().get_activation().get_activeCell().get_row(); //--This is not Available

  cell = activeRow.get_cellByColumnKey("ViewName");

  ID = String(cell.get_value());





有什么想法吗?需要帮助



ehwash



Any idea's? Need help

ehwash

推荐答案

find( wdgViews); // 如果网格位于webtab之外,则有效

// 获取活动行
var activeRow = grid 。.get_behaviors()get_activation()get_activeCell()get_row()。;

cell = activeRow.get_cellByColumnKey( ViewName);

ID = 字符串(cell.get_value());
find("wdgViews"); // works if grid is outside of webtab // Get active row var activeRow = grid.get_behaviors().get_activation().get_activeCell().get_row(); cell = activeRow.get_cellByColumnKey("ViewName"); ID = String(cell.get_value());





但是在WebTab控件中不起作用。我已经能够接近以下但是WebDataGrid的方法在那里我无法获得activeRow或Cell。





But won't work within the WebTab control. I've been able to come close with the following but WebDataGrid's method are not available there I cannot get the activeRow or Cell.

var webTab =


find( WebTab1);
var grid = webTab.getTabAt( 1 )。findChild( wdgViews);

// 获取有效行
var activeRow = grid.get_behaviors()。get_activation()。get_activeCell()。get_row(); // - 这不可用

cell = activeRow.get_cellByColumnKey( ViewName);

ID = 字符串(cell.get_value());
find("WebTab1"); var grid = webTab.getTabAt(1).findChild("wdgViews"); // Get active row var activeRow = grid.get_behaviors().get_activation().get_activeCell().get_row(); //--This is not Available cell = activeRow.get_cellByColumnKey("ViewName"); ID = String(cell.get_value());





有什么想法吗?需要帮助



ehwash



Any idea's? Need help

ehwash


一旦我发布一个我已经研究了几天的问题,这个问题永远不会失败回答。只需将.id属性添加到下面的代码中。很抱歉。



This never fails once I post a question I've been researching for days I will stummble across and answer. Just had to add the .id property to the below code. Sorry about that.

var tab =


这篇关于如何在WebTab上找到WebDataGrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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