[CLOSED] GridPanel with RowExpander; Selecting Row

  1. #1

    [CLOSED] GridPanel with RowExpander; Selecting Row

    Hi I would like to find a solution to the problem discussed in the thread below. When selecting the text area or row body of a grid row, the row is not selected. Similarly, the rowbodydblclick event isn't firing. Unfortunately the solution below only works in 2.x as the property discussed is not available in 1.x

    http://forums.ext.net/showthread.php?19024-CLOSED-GridPanel-with-RowExpander-Selecting-Row


    Any help would be great.

    Thanks,

    Gav
    Last edited by Daniil; Jul 17, 2012 at 11:57 AM. Reason: [CLOSED]
  2. #2
    Hi,

    The rows appear to be selected without any additional tricks in Ext.NET v1.

    Please provide a test sample.

    Example
    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <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[] { "test1", "test2", "test3" },
                    new object[] { "test4", "test5", "test6" },
                    new object[] { "test7", "test8", "test9" },
                };
                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>Ext.NET Example</title>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
        <ext:GridPanel ID="GridPanel1" runat="server" AutoHeight="true">
            <Store>
                <ext:Store runat="server">
                    <Reader>
                        <ext:ArrayReader>
                            <Fields>
                                <ext:RecordField Name="test1" />
                                <ext:RecordField Name="test2" />
                                <ext:RecordField Name="test3" />
                            </Fields>
                        </ext:ArrayReader>
                    </Reader>
                </ext:Store>
            </Store>
            <ColumnModel runat="server">
                <Columns>
                    <ext:Column Header="Test1" DataIndex="test1" />
                    <ext:Column Header="Test2" DataIndex="test2" />
                    <ext:Column Header="Test3" DataIndex="test3" />
                </Columns>
            </ColumnModel>
            <Plugins>
                <ext:RowExpander runat="server">
                    <Template runat="server">
                        <Html>
                            {test1} {test2} {test3}
                        </Html>
                    </Template>
                </ext:RowExpander>
            </Plugins>
            <SelectionModel>
                <ext:RowSelectionModel runat="server" />
            </SelectionModel>
        </ext:GridPanel>
    </body>
    </html>
  3. #3
    Sorry, can you close this ticket as this isn't reflecting the problem I'm having. I'll open a new ticket with a more precise description and example.

    Thanks,

    Gav

Similar Threads

  1. [CLOSED] GridPanel with RowExpander; Selecting Row
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: May 17, 2012, 2:56 PM
  2. [CLOSED] Problem with selecting values in gridpanel.
    By tlfdesarrollo in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Jan 16, 2012, 1:38 PM
  3. Selecting different columnmodel for gridpanel.
    By masudcseku in forum 1.x Help
    Replies: 5
    Last Post: May 11, 2011, 5:09 PM
  4. [CLOSED] pre-selecting gridpanel rows
    By LeeTheGreek in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 04, 2010, 7:42 AM
  5. [CLOSED] selecting text in gridpanel with IE
    By vsn in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 30, 2009, 6:49 AM

Tags for this Thread

Posting Permissions