May 14, 2014, 3:10 AM
[CLOSED] Row Expander Column Sizing and Grid Event
Hello,
I got a problem with column sizing as you can see in the attachment below, when the text length is longer than the column width, the column header didn't resize accordingly. Please help with this.
Another question about row expander, how to attach click event on selected grid as attachment below.
The aspx code:
I got a problem with column sizing as you can see in the attachment below, when the text length is longer than the column width, the column header didn't resize accordingly. Please help with this.
Another question about row expander, how to attach click event on selected grid as attachment below.
The 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 28, 2014 at 4:23 AM.
Reason: [CLOSED]