Nov 25, 2010, 4:32 AM
Help Needed with auto expand column
i have used AutoExpandColumn for grid panel. my grid works fine. but there is a small issue when i set the AutoExpandColumn property it leaves some space at the end of the grid. i have attached the image for more deatils.
aspx is as below:
Pooja
aspx is as below:
<ext:FitLayout ID="FitLayout2" runat="server">
<ext:GridPanel ID="gpProduct" runat="server" StoreID="storeProductGrid" ClearEditorFilter="false"
AutoScroll="true" StripeRows="true" Height="290" Border="false" AutoExpandColumn="Item">
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ColumnID="Category" Header="<%$ Resources:Portal_Product, GRIDCOLUMNCATAGORY %>"
Sortable="true" DataIndex="CategoryCode" Hidden="true">
</ext:Column>
<ext:Column ColumnID="Family" Header="<%$ Resources:Portal_Product, GRIDCOLUMNFAMILY %>"
Width="200" Sortable="true" DataIndex="FamilyName">
</ext:Column>
<ext:Column Header="<%$ Resources:Portal_Product, GRIDCOLUMNTYPE %>" Width="200"
Sortable="true" DataIndex="TypeName">
</ext:Column>
<ext:Column Header="<%$ Resources:Portal_Product, GRIDCOLUMNPRODUCT %>" Width="172"
Sortable="true" DataIndex="ProductName">
</ext:Column>
<ext:Column ColumnID="Item" Header="<%$ Resources:Portal_Product, GRIDCOLUMNComponent %>"
Width="175" Sortable="true" DataIndex="ItemName">
</ext:Column>
</Columns>
</ColumnModel>
<BottomBar>
<ext:PagingToolbar ID="PagingToolBar1" runat="server" PageSize="10" AutoWidth="true" />
</BottomBar>
</ext:GridPanel>
</ext:FitLayout>
ThanksPooja