[CLOSED] GridPanel Row Height and Wrap plus Column width

  1. #1

    [CLOSED] GridPanel Row Height and Wrap plus Column width

    Hi,
    Please can you tell me if it is possible to adjust the Height of a Row in a GridPanel? (v0.8.2)
    setting the wrap attribute on the Column element has no effect.

    Also is it possible to auto adjust the Column widths to the width of the Header.

    Many Thanks
    Last edited by Daniil; Dec 15, 2010 at 10:29 AM. Reason: Marked as [CLOSED]. No more information was provided.
  2. #2
    Quote Originally Posted by sadaf View Post
    Hi,
    Please can you tell me if it is possible to adjust the Height of a Row in a GridPanel? (v0.8.2)
    The best way is to set respective css rule.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Ext.IsAjaxRequest)
            {
                Store store = this.Store1;
                store.DataSource = new object[] { 
                                             new object[] {"test11", "test12", "test13"},
                                             new object[] {"test21", "test22", "test23"},
                                             new object[] {"test31", "test32", "test33"}
                                    };
                store.DataBind();
            }
        }
    </script>
    
    <!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 runat="server">
        <title>Coolite 0.8.X Example</title>
    
        <style type="text/css">
            .x-grid-custom .x-grid3-row {
                height: 50px;
            }
            
            .x-grid-custom .x-grid3-row-table TD {
                line-height: 46px;
            }
        </style>
    </head>
    <body>
        <form runat="server">
        <ext:ScriptManager runat="server" />
        <ext:Store ID="Store1" runat="server">
            <Reader>
                <ext:ArrayReader>
                    <Fields>
                        <ext:RecordField Name="test1" />
                        <ext:RecordField Name="test2" />
                        <ext:RecordField Name="test3" />
                    </Fields>
                </ext:ArrayReader>
            </Reader>
        </ext:Store>
        <ext:GridPanel 
            runat="server" 
            StoreID="Store1" 
            AutoHeight="true" 
            Cls="x-grid-custom">
            <ColumnModel runat="server">
                <Columns>
                    <ext:Column Header="Test1" DataIndex="test1" />
                    <ext:Column Header="Test2" DataIndex="test2" />
                    <ext:Column Header="Test3" DataIndex="test3" />
                </Columns>
            </ColumnModel>
        </ext:GridPanel>
        </form>
    </body>
    </html>
    Quote Originally Posted by sadaf View Post
    Also is it possible to auto adjust the Column widths to the width of the Header.
    There is no such option. At the moment we are not sure how it can be achieved but we will try.
  3. #3
    Thankyou,

    Are you able to answer the other part of my question?

    is it possible to auto adjust the Column widths to the width of the Header.
  4. #4
    Right now - no, I can't.

    Quote Originally Posted by Daniil View Post
    There is no such option. At the moment we are not sure how it can be achieved but we will try.
  5. #5
    Hi,

    is it possible to auto adjust the Column widths to the width of the Header.
    Can you provide more details about it? Each column always equals appropriate header section. Can you provide image mockp which demonstrates the requirement?

Similar Threads

  1. Replies: 1
    Last Post: Jun 11, 2012, 11:59 AM
  2. [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
  3. [CLOSED] gridpanel column wrap is not working
    By majestic in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 26, 2011, 2:58 PM
  4. Replies: 6
    Last Post: Jun 11, 2010, 12:47 PM
  5. [CLOSED] GridPanel Column Wrap
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 03, 2009, 6:15 PM

Posting Permissions