Help Needed with auto expand column

  1. #1

    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:
    
    <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>
    Thanks
    Pooja
    Attached Thumbnails Click image for larger version. 

Name:	autoexpandcolumn.png 
Views:	247 
Size:	25.8 KB 
ID:	1943  
  2. #2
    Hi,

    Please add the following GridView.

    Example
    <ext:GridPanel ...>
        ...
        <View>
            <ext:GridView runat="server" ScrollOffset="0" ForceFit="true"/>
        </View>
    </ext:GridPanel>
  3. #3

    [CLOSED] Help Needed with auto expand column

    It Worked !!! You are a life saver !!
    Last edited by pooja; Nov 25, 2010 at 11:30 AM. Reason: to mark thread as resolved

Similar Threads

  1. [CLOSED] How to wrap text in auto expand column in gridpanel?
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 12, 2012, 4:15 PM
  2. [CLOSED] Grid column auto size
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 28, 2011, 7:30 PM
  3. [CLOSED] how to set rownumber column auto width
    By lonely7345 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 02, 2011, 3:50 PM
  4. Change the expand column of TreeGrid
    By Thiago Nogueira in forum 1.x Help
    Replies: 0
    Last Post: Nov 17, 2010, 5:37 PM
  5. Column Layout auto width problem in IE
    By sz_146 in forum 1.x Help
    Replies: 0
    Last Post: Jan 05, 2009, 10:59 AM

Tags for this Thread

Posting Permissions