【问题标题】:Dev Express GridView: I want to obtain the row and column of clicked cell - or the headings of row and columnDevexpress GridView:我想获取单击单元格的行和列 - 或行和列的标题
【发布时间】:2012-08-25 15:54:22
【问题描述】:

我一直在尝试使用 jQuery 和许多其他方法。

首先,我调用一个函数:

ClientSideEvents  RowClick="function(s, e) { OnGridFocusedRowChanged(); }" 

这让我进入了我用来重定向到另一个 ASPX 的例程。

(我喜欢在后面使用代码,但在使用 jQuery 和 ASP.net Gridview 之前我已经做过类似的事情。)

   function OnGridFocusedRowChanged() {
        cell = document.getElementById('<%=ASPxGridView1.ClientID%>')
        alert(cell);  ????
        ViewName = aspxcboDashboard_IN.GetText();
        window.location.href = "Drills.aspx?ViewName=" + ViewName + "&ViewRow=test" + "&ViewCol=test"; 
     } 

【问题讨论】:

    标签: jquery gridview devexpress


    【解决方案1】:

    我不确定您的代码的哪一部分失败,但如果您无法获取网格,请使用 ClientInstanceName 属性。
    例如。将 ClientInstanceName 设置为 grid1 并将网格作为任何其他全局变量获取:window.grid1window["grid1"] 或只是 grid1

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-15
      • 1970-01-01
      • 1970-01-01
      • 2023-03-26
      • 2014-12-26
      • 1970-01-01
      相关资源
      最近更新 更多