[CLOSED] Is it possible to merge grid columns on specific row in a grid.

  1. #1

    [CLOSED] Is it possible to merge grid columns on specific row in a grid.

    Hi,

    Is it possible to merge grid columns on specific row. as shown in attached image highlighted in yellow.

    Attached Thumbnails Click image for larger version. 

Name:	sample.JPG 
Views:	44 
Size:	19.1 KB 
ID:	14821  
    Last edited by Daniil; Sep 02, 2014 at 1:11 PM. Reason: [CLOSED]
  2. #2
    Hi @PriceRightHTML5team,

    Unfortunately, there is no such the functionality.

    If think about possible approaches to achieve that, I would try with a RowBody.

    Example
    <%@ Page Language="C#" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                Store store = this.GridPanel1.GetStore();
                store.DataSource = new object[] 
                { 
                    new object[] { "test", "test" },
                    new object[] { "test", "test" },
                    new object[] { "test", "test" }
                };
            }
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    
        <style>
            .my-row-body {
                background-color: yellow;
            }
        </style>
    
        <script>
            var getAdditionalData = function(data, idx, record, rowData) {
                if (idx === 1) {
                    rowData.rowBody = "something";
                    rowData.rowBodyCls = "my-row-body";
                } else {
                    rowData.rowBody = "";
                    rowData.rowBodyCls = "x-hidden";
                }
    
                console.log(rowData);
            };
        </script>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:GridPanel ID="GridPanel1" runat="server" Height="200">
                <Store>
                    <ext:Store runat="server">
                        <Model>
                            <ext:Model runat="server">
                                <Fields>
                                    <ext:ModelField Name="test1" />
                                    <ext:ModelField Name="test2" />
                                </Fields>
                            </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
                <ColumnModel runat="server">
                    <Columns>
                        <ext:Column runat="server" Text="Test 1" DataIndex="test1" />
                        <ext:Column runat="server" Text="Test 2" DataIndex="test2" />
                    </Columns>
                </ColumnModel>
                <Features>
                    <ext:RowBody runat="server">
                        <GetAdditionalData Fn="getAdditionalData" />
                    </ext:RowBody>
                </Features>
            </ext:GridPanel>
        </form>
    </body>
    </html>

Similar Threads

  1. [CLOSED] Grid Columns not occupying full space of the grid
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 29, 2014, 11:10 AM
  2. Replies: 3
    Last Post: Apr 08, 2014, 9:33 PM
  3. Grid Panel / Is it possible to merge columns?
    By eqttester in forum 1.x Help
    Replies: 1
    Last Post: Mar 22, 2011, 10:20 PM
  4. Replies: 5
    Last Post: Sep 10, 2010, 11:19 AM
  5. [CLOSED] Link in Grid defined by 2 Grid Columns
    By macap in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 23, 2009, 7:47 AM

Tags for this Thread

Posting Permissions