[CLOSED] Combobox Component Column not displayed after store refresh / reload

  1. #1

    [CLOSED] Combobox Component Column not displayed after store refresh / reload

    Dear Support,

    We have a gridpanel with combobox as a component column, first time the combobx was working fine, but after refreshing or reloading store it shows only value field not the component. We are facing this issue just after updating the EXt.Net dLL to version 2.5, before this version we had no issue with this component.

    Thanks.
    Last edited by Daniil; Mar 19, 2014 at 8:51 AM. Reason: [CLOSED]
  2. #2
    Please privide runnable test case

    Here is my test case and it works fine
    <%@ 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)
            {
                this.BindData();
            }
        }
    
    
        protected void Store1_ReadData(object sender, StoreReadDataEventArgs e)
        {
            this.BindData();
        }
    
    
        private void BindData()
        {
            this.Store1.DataSource = new object[]
                {
                    new object[] { 1, 1, "Text 1", DateTime.Now.Date },
                    new object[] { 2, 2, "Text 2", DateTime.Now.Date },
                    new object[] { 3, 3, "Text 3", DateTime.Now.Date },
                    new object[] { 4, 4, "Text 4", DateTime.Now.Date },
                    new object[] { 5, 5, "Text 5", DateTime.Now.Date },
                    new object[] { 6, 6, "Text 6", DateTime.Now.Date },
                    new object[] { 7, 7, "Text 7", DateTime.Now.Date },
                    new object[] { 8, 8, "Text 8", DateTime.Now.Date },
                    new object[] { 9, 9, "Text 9", DateTime.Now.Date }
                };
    
    
            this.Store1.DataBind();
        }
    </script>
    
    
    <!DOCTYPE html>
    
    
    <html>
    <head runat="server">
        <title>ComponentColumn Editor - Ext.NET Examples</title>
        <link href="/resources/css/examples.css" rel="stylesheet" />    
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            
            <h1>ComponentColumn as Editor</h1>
    
    
            <ext:Button runat="server" Text="Reload" Handler="#{Store1}.reload();" />
            <ext:GridPanel 
                runat="server" 
                Title="ComponentColumn Editor" 
                Width="600" 
                Height="300">
                <Store>
                    <ext:Store ID="Store1" runat="server" OnReadData="Store1_ReadData">
                        <Model>
                            <ext:Model runat="server">
                                <Fields>
                                    <ext:ModelField Name="IntField" Type="Int" />
                                    <ext:ModelField Name="ComboField" Type="Int" />
                                    <ext:ModelField Name="TextField" Type="String" />
                                    <ext:ModelField Name="DateField" Type="Date" />
                                </Fields>
                            </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
                <ColumnModel runat="server">
                    <Columns>
                        <ext:ComponentColumn 
                            runat="server" 
                            Editor="true"
                            DataIndex="IntField"
                            Flex="1"
                            Text="Integer">
                            <Component>
                                <ext:NumberField runat="server" />
                            </Component>
                        </ext:ComponentColumn>
    
    
                        <ext:ComponentColumn 
                            runat="server" 
                            Editor="true"
                            DataIndex="ComboField"
                            Flex="1"
                            Text="ComboBox">
                            <Component>
                                <ext:ComboBox runat="server">
                                    <Items>
                                        <ext:ListItem Text="Item 1" Value="1" Mode="Raw" />
                                        <ext:ListItem Text="Item 2" Value="2" Mode="Raw" />
                                        <ext:ListItem Text="Item 3" Value="3" Mode="Raw" />
                                        <ext:ListItem Text="Item 4" Value="4" Mode="Raw" />
                                        <ext:ListItem Text="Item 5" Value="5" Mode="Raw" />
                                        <ext:ListItem Text="Item 6" Value="6" Mode="Raw" />
                                        <ext:ListItem Text="Item 7" Value="7" Mode="Raw" />
                                        <ext:ListItem Text="Item 8" Value="8" Mode="Raw" />
                                        <ext:ListItem Text="Item 9" Value="9" Mode="Raw" />
                                    </Items>
                                </ext:ComboBox>
                            </Component>
                        </ext:ComponentColumn>
    
    
                        <ext:ComponentColumn 
                            runat="server" 
                            Editor="true"
                            DataIndex="TextField"
                            Flex="1"
                            Text="Text">
                            <Component>
                                <ext:TextField runat="server" />
                            </Component>
                        </ext:ComponentColumn>
    
    
                        <ext:ComponentColumn 
                            runat="server" 
                            Editor="true"
                            DataIndex="DateField"
                            Flex="1"
                            Text="Date">
                            <Component>
                                <ext:DateField runat="server" />
                            </Component>
                        </ext:ComponentColumn>
                    </Columns>
                </ColumnModel>          
            </ext:GridPanel>  
        </form>
    </body>
    </html>
    Vladimir Shcheglov
    Sr. Developer
  3. #3

    Facing the same issue (Urgent help appreciated)

    First time we are loading the gridpanel with the combobox,second time when we load the gridpanel with out refreshing the page, than the component column is not displaying.

Similar Threads

  1. [CLOSED] ComboBox Not Populating on First Store Reload
    By elisa in forum 2.x Premium Help
    Replies: 2
    Last Post: Sep 02, 2013, 4:17 PM
  2. Replies: 2
    Last Post: May 24, 2013, 1:54 AM
  3. [CLOSED] Refresh RowExpander Plugin on store reload/databind.
    By HansWapenaar in forum 2.x Premium Help
    Replies: 5
    Last Post: Feb 06, 2013, 6:37 AM
  4. [CLOSED] Combobox expands after the store reload
    By deejayns in forum 1.x Premium Help
    Replies: 4
    Last Post: Jan 24, 2012, 7:26 AM
  5. Replies: 2
    Last Post: Nov 02, 2009, 8:27 AM

Tags for this Thread

Posting Permissions