May 14, 2014, 8:37 AM
[CLOSED] Row Expander Grid Event Click
Hello,
Another question about row expander, how to attach click event on selected grid as attachment below?
Thank You
Aspx Code
Another question about row expander, how to attach click event on selected grid as attachment below?
Thank You
Aspx Code
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm7.aspx.vb" Inherits="RowExpen.WebForm7" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
<ext:Viewport ID="Viewport1" runat="server" Layout="fit">
<Items>
<ext:GridPanel ID="GridPanel1"
runat="server"
Title="Expander Rows with GridPanel"
Collapsible="true"
AnimCollapse="true"
Icon="Table"
Width="600"
Height="450"
DisableSelection="true"
Resizable="True">
<Store>
<ext:Store ID="Store1" runat="server">
<Model>
<ext:Model ID="Model1" runat="server" IDProperty="ID">
<Fields>
<ext:ModelField Name="ID" />
<ext:ModelField Name="Name" />
<ext:ModelField Name="Description" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ID="Column1" runat="server" Text="ID" DataIndex="ID" Flex="1" />
<ext:Column ID="Column2" runat="server" Text="Name" DataIndex="Name" Flex="1" />
<ext:Column ID="Column3" runat="server" Text="Description" DataIndex="Description" Flex="1" />
</Columns>
</ColumnModel>
<Plugins>
<ext:RowExpander ID="RowExpander1" runat="server" SwallowBodyEvents="true"
Collapsible="true"
AnimCollapse="true"
Icon="Table"
Width="600"
AutoScroll="True"
Border="True" Header="false" TrackMouseOver="true" Cls="gridFont"
Layout="FitLayout" StripeRows="true">
<Loader ID="Loader1" runat="server" DirectMethod="#{DirectMethods}.GetGrid" Mode="Component">
<LoadMask ShowMask="true" />
<Params>
<ext:Parameter Name="id" Value="this.record.getId()" Mode="Raw" />
</Params>
</Loader>
</ext:RowExpander>
</Plugins>
<Listeners>
<ViewReady Handler="this.view.on('beforerowupdate', rerenderNestedGrid);" />
</Listeners>
</ext:GridPanel>
</Items>
</ext:Viewport>
</form>
</body>
</html>
Last edited by Daniil; May 21, 2014 at 7:01 AM.
Reason: [CLOSED]