[CLOSED] [1.0] Something fishy about the RowExpander plugin in the SVN

  1. #1

    [CLOSED] [1.0] Something fishy about the RowExpander plugin in the SVN

    Hi, I updated my code from the SVN an hour earlier. And doing so, the code that worked previously now fails. The problem is somewhere with the RowExpander plugin.

    When using the RowExpander plugin, the Ext.Net framework automatically adds an extra column in the first position for the RowExpander.

    The following script generated by Ext.Net should denote the problem:

    items:[{id:"ctl03_ctlInvoice_grdReservation",xtype:"netgrid",rowHeight:0.83,plugins:this.ctl03_ctlInvoice_grdResExpander=new Ext.grid.RowExpander({proxyId:"ctl03_ctlInvoice_grdResExpander",tpl:this.ctl03_ctlInvoice_ctl09=new Ext.net.XTemplate({proxyId:"ctl03_ctlInvoice_ctl09",html:["<div style=\"float: left\">&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp&amp;nbsp;&amp;nbsp;&amp;nbsp
    
    
    ",""]}),lazyRender:false,listeners:{beforeexpand:{fn:Inv.grdReservationBeforeRowExpand}}}),title:"Reservations",store:ctl03_ctlInvoice_storeRes,view:this.ctl03_ctlInvoice_ctl07=new Ext.grid.GridView({proxyId:"ctl03_ctlInvoice_ctl07",listeners:{refresh:{fn:Inv.grdReservationViewRefresh}}}),selectionMemory:false,cm:this.ctl03_ctlInvoice_ctl08=new Ext.grid.ColumnModel({proxyId:"ctl03_ctlInvoice_ctl08",defaultSortable:true,columns:[grdResExpander,{renderer:Inv.grdReservationSaleTypeRenderer
    Notice the text in larger font above, the id used for creating the RowExpnder is ClientId, whereas in the columns collection, it is Server Id.

    An independent code for reproducing the issue is below. I have not specified an id for the RowExpander below, as a result the script generated contains something like columns:[,....
    Notice above there is a blank comma at the beginning of the columns collection again indicating the use of Server Id here.

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Combobox Bug</title>
        <link href="../../../../resources/css/examples.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Store runat="server" ID="s1">
    <Reader>
    <ext:JsonReader>
    <Fields>
    <ext:RecordField Name="n1" />
    <ext:RecordField Name="n2" />
    </Fields>
    </ext:JsonReader>
    </Reader>
            </ext:Store>
            
            <ext:GridPanel runat="server" ID="grd" StoreID="s1" Width="200" Height="400">
    <ColumnModel runat="server">
    <Columns>
    <ext:Column DataIndex="n1" />
    <ext:Column DataIndex="n2" />
    </Columns>
    </ColumnModel>
    <Buttons>
    <ext:Button runat="server" Icon="Add" OnClientClick="#{grd}.addRecord();" />
    </Buttons>
    <Plugins>
    <ext:RowExpander runat="server" />
    </Plugins>
            </ext:GridPanel>
        </form>
    </body>
    </html>
  2. #2

    RE: [CLOSED] [1.0] Something fishy about the RowExpander plugin in the SVN

    Hi,

    Thanks for pointing out the bug. Please update from SVN and retest

Similar Threads

  1. [CLOSED] Automatically row expand using RowExpander plugin
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 21, 2012, 8:37 AM
  2. [CLOSED] RowExpander Plugin for Grid
    By craig2005 in forum 1.x Legacy Premium Help
    Replies: 16
    Last Post: Jul 14, 2011, 2:48 PM
  3. [CLOSED] Locking Grid with RowExpander plugin
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 23, 2011, 2:37 PM
  4. [CLOSED] GridView GetRowClass: not working with RowExpander plugin
    By capecod in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 05, 2010, 1:44 PM
  5. [CLOSED] GridPanel RowExpander Plugin
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 12, 2008, 7:10 PM

Posting Permissions