Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think you just need to remove the round brackets from around the <code>#{grdSantion}</code>. </p> <pre><code>// Not OK (#{grdSanction}).selModel.getSelected().data.VoucherID // OK #{grdSanction}.selModel.getSelected().data.VoucherID </code></pre> <p>The following sample demonstrates the full scenario and appears to work as per your requirements. </p> <p><strong>Example</strong></p> <pre><code>&lt;%@ Page Language="C#" %&gt; &lt;%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %&gt; &lt;script runat="server"&gt; protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { var store = this.GridPanel1.GetStore(); store.DataSource = this.Data; store.DataBind(); } } private object[] Data { get { return new object[] { new object[] { "3m Co", 71.72, 0.02, 0.03, "9/1 12:00am" }, new object[] { "Alcoa Inc", 29.01, 0.42, 1.47, "9/1 12:00am" }, new object[] { "Altria Group Inc", 83.81, 0.28, 0.34, "9/1 12:00am" }, new object[] { "American Express Company", 52.55, 0.01, 0.02, "9/1 12:00am" }, new object[] { "American International Group, Inc.", 64.13, 0.31, 0.49, "9/1 12:00am" }, new object[] { "AT&amp;T Inc.", 31.61, -0.48, -1.54, "9/1 12:00am" }, new object[] { "Boeing Co.", 75.43, 0.53, 0.71, "9/1 12:00am" }, new object[] { "Caterpillar Inc.", 67.27, 0.92, 1.39, "9/1 12:00am" } }; } } protected void Button1_Click(object sender, DirectEventArgs e) { X.Msg.Notify("Company", e.ExtraParams["company"]).Show(); } &lt;/script&gt; &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head runat="server"&gt; &lt;title&gt;Ext.NET Example&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form runat="server"&gt; &lt;ext:ResourceManager runat="server" /&gt; &lt;ext:GridPanel ID="GridPanel1" runat="server" Title="Array Grid" Width="350" Height="215"&gt; &lt;TopBar&gt; &lt;ext:Toolbar runat="server"&gt; &lt;Items&gt; &lt;ext:Button runat="server" Text="Delete" Icon="Delete"&gt; &lt;DirectEvents&gt; &lt;Click OnEvent="Button1_Click"&gt; &lt;ExtraParams&gt; &lt;ext:Parameter Name="company" Value="#{GridPanel1}.selModel.getSelected().data.company" Mode="Raw" /&gt; &lt;/ExtraParams&gt; &lt;Confirmation Message="Do you really want to delete sanction?" ConfirmRequest="true"/&gt; &lt;/Click&gt; &lt;/DirectEvents&gt; &lt;/ext:Button&gt; &lt;/Items&gt; &lt;/ext:Toolbar&gt; &lt;/TopBar&gt; &lt;Store&gt; &lt;ext:Store runat="server"&gt; &lt;Reader&gt; &lt;ext:ArrayReader&gt; &lt;Fields&gt; &lt;ext:RecordField Name="company" /&gt; &lt;/Fields&gt; &lt;/ext:ArrayReader&gt; &lt;/Reader&gt; &lt;/ext:Store&gt; &lt;/Store&gt; &lt;ColumnModel runat="server"&gt; &lt;Columns&gt; &lt;ext:Column ColumnID="Company" Header="Company" DataIndex="company" /&gt; &lt;/Columns&gt; &lt;/ColumnModel&gt; &lt;SelectionModel&gt; &lt;ext:RowSelectionModel runat="server" SingleSelect="true" /&gt; &lt;/SelectionModel&gt; &lt;/ext:GridPanel&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload