[CLOSED] [#515] Problem With Store+ComboBox+ComponentColumn in Ext.Net 2.5 (working in Ext.Net 2.4)

  1. #1

    [CLOSED] [#515] Problem With Store+ComboBox+ComponentColumn in Ext.Net 2.5 (working in Ext.Net 2.4)

    Hi all,

    in the attached aspx Page I need the Store/ComboBox/ComponentColumn working correctly with Ext.Net Libraries 2.5.

    To test, click Manage Ran -> Automatic Adj Plan.

    As you can test, the store/combobox is not re-loaded (is undefined) if you close and re-open the window that contains it.

    The example does not works with 2.5 version referenced It works with 2.4 version of the Ext.Net, Ext.Net.Utilities, Newtonsoft.Json dll

    Thanks in advance, bye


    <%@ Page Title="" Language="C#" AutoEventWireup="true" %>
    
    <%@Import Namespace="System.Data" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    
    <script runat="server">
    
        /// <summary>
        /// AutomaticAdjPlan OnClick Event Handler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnAutomaticAdjPlan_OnClick(object sender, DirectEventArgs e)
        {
            try
            {
                //--------------------------------------------------------------
                ShowWindowsAutomaticAdj();
                //--------------------------------------------------------------
            }
            catch (Exception exc)
            {
               // XExt.XUtil.ShowNotification("TITLE", String.Format("{0}: {1}", "NODEB", exc.Message), hideDelay: 5000);
            }
        }
        
        /// <summary>
        /// Show Automatic Plan
        /// </summary>
        public void ShowWindowsAutomaticAdj()
        {
            this.stoTargetCell_StsName2G.Reload();
    
            LoadAdjConfigurationGrid();
    
            wndAdjAutomaticCreate.Show();
            wndAdjAutomaticCreate.Center();
        }
    
        /// <summary>
        /// LoadAdjConfigurationGrid
        /// </summary>
        private void LoadAdjConfigurationGrid()
        {
    
            var dataLayout = new DataTable();
            dataLayout.Columns.Add(new DataColumn("Source_Cell", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Source_Azimuth", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Adj2G_TargetCell", typeof(string)));
    
    
            for (int i=1; i<=1; i++)
            {
                var rowToAdd = dataLayout.NewRow();
    
    
                rowToAdd["Adj2G_TargetCell"] = "Cella 2G " + i.ToString();
                rowToAdd["Source_Azimuth"] = "30";
                rowToAdd["Source_Cell"] = "$-MM@0009988";
                
                dataLayout.Rows.Add(rowToAdd);
            }
            stoAdj_TargetCell.DataSource = dataLayout;
            stoAdj_TargetCell.DataBind();
    
        }
    
        
        /// <summary>
        /// Caricamento store per combobox 2G
        /// </summary>
        protected void stoCloningCell_Load2G(object sender, StoreReadDataEventArgs e)
        {
    
            var dataLayout = new DataTable();
            dataLayout.Columns.Add(new DataColumn("Text", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Value", typeof(string)));
    
    
            for (int i = 1; i <= 4; i++)
            {
                var rowToAdd = dataLayout.NewRow();
    
                rowToAdd["Text"] = "xxxx 2G " + i.ToString();
                rowToAdd["Value"] = "xxxx 2G " + i.ToString();
    
                dataLayout.Rows.Add(rowToAdd);
            }
            
            this.stoTargetCell_StsName2G.DataSource = dataLayout;
            this.stoTargetCell_StsName2G.DataBind();
        }
        
        
    </script>
    
    
    <script type="text/javascript">
        var st;
    </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 id="Head1" runat="server">
        <title>Configuration Manager</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <ext:ResourceManager ID="ResourceManager1" runat="server" AjaxTimeout="3600000"></ext:ResourceManager>
            <ext:Viewport ID="vwpMaster" runat="server" Layout="FitLayout">
                <Items>
                    <ext:Panel ID="pnlCenter" runat="server" Title="Center" Header="false" Layout="fit">
                        <TopBar>
                            <ext:Toolbar ID="Toolbar1" runat="server">
                                <Items>
                                     <ext:Button ID="btnRanManagament" runat="server" Text="Manage Ran" Pressed="False" AllowDepress="False" Icon="TransmitRed">
                                        <Menu>
                                            <ext:Menu ID="mnuManageSector" runat="server">
                                                <Items>
    
                                                    <ext:MenuItem ID="mnuAutomaticAdjPlan" runat="server" Text="Automatic Adj Plan" Icon="ShapeMoveBack">
                                                        <DirectEvents>
                                                            <Click OnEvent="btnAutomaticAdjPlan_OnClick">
                                                                <EventMask ShowMask="true" />
                                                            </Click>
                                                        </DirectEvents>
                                                    </ext:MenuItem>
    
    
                                                </Items>
                                            </ext:Menu>
                                        </Menu>
                                    </ext:Button>
                                </Items>
                            </ext:Toolbar>
                        </TopBar>
                        <Content>
                            <ext:Window ID="wndAdjAutomaticCreate" runat="server" Icon="Cmy" Width="800"  Height="300" Title="Adj Plan Details"
                                AutoShow="false" Modal="true" Hidden="true" Maximizable="false" Layout="border" AutoScroll="false"
                                    Maximized="false" Resizable="false" Closable="true" CloseAction="Hide">
                                <Items>
                                    <ext:GridPanel ID="gplAdj_TargetCell" runat="server" Region="North" Border="false" SortableColumns="false" AutoScroll="true">
                                        <Store>
                                            <ext:Store ID="stoAdj_TargetCell" runat="server">
                                                <Model>
                                                    <ext:Model ID="modAdj_TargetCell" runat="server">
                                                        <Fields>
                                                            <ext:ModelField Name="Source_Cell" Type="String" />
                                                            <ext:ModelField Name="Source_Azimuth" Type="String" />
                                                            <ext:ModelField Name="Adj2G_TargetCell" Type="String" />
                                                        </Fields>
                                                    </ext:Model>
                                                </Model>
                                            </ext:Store>
                                        </Store>
                                        <SelectionModel>
                                            <ext:CheckboxSelectionModel ID="CheckboxSelectionAdj_TargetCell" Mode="Multi" runat="server" />
                                        </SelectionModel>
                                        <ColumnModel ID="ColumnModelAdj" runat="server">
                                            <Columns>
                                                <ext:Column ID="clnAdj_SourceCell" runat="server" DataIndex="Source_Cell" Text="Source Cell" />
                                                <ext:Column ID="clnAdj_SourceAzimuth" runat="server" DataIndex="Source_Azimuth" Text="Source Azimuth" />
                                                <ext:ComponentColumn ID="clnAdj2G_TargetCell" runat="server" Editor="true" DataIndex="Adj2G_TargetCell" Flex="1"
                                                    Text="2G Colocated Cell">
                                                    <Component>
                                                        <ext:ComboBox ID="cmbAdj2G_TargetCell" 
                                                                    runat="server"
                                                                    DisplayField="Text"
                                                                    ValueField="Value" 
                                                                    EmptyText="Select...">
    
                                                        </ext:ComboBox>  
                                                    </Component>
                                                    <Listeners>
                                                        <BeforeBind Handler="
                                                        if (#{stoTargetCell_StsName2G}) 
                                                        {
                                                            e.config[0].store = #{stoTargetCell_StsName2G};
                                                        }
                                                        else 
                                                        {
                                                            e.config[0].store = st;
                                                           // alert(#{stoTargetCell_StsName2G});
                                                        }
                                                        ">
                                                        </BeforeBind>
                                                    </Listeners>
                                                </ext:ComponentColumn>
                                            </Columns>
                                        </ColumnModel>
                                        <Listeners>
                                            <AfterLayout Handler="#{gplAdj_TargetCell}.getSelectionModel().selectAll();" />
                                        </Listeners>
                                    </ext:GridPanel>
                                </Items>
        
                                <Bin>
                                    <ext:Store ID="stoTargetCell_StsName2G" runat="server" OnReadData="stoCloningCell_Load2G" AutoLoad="false">
                                        <Model>
                                            <ext:Model ID="Model2G" runat="server" IDProperty="Value" >
                                                <Fields>
                                                    <ext:ModelField Name="Text" Type="String" />
                                                    <ext:ModelField Name="Value" Type="String" />
                                                </Fields>
                                            </ext:Model>
                                        </Model>
                                        <Listeners>
                                            <Load Handler="st=this;"></Load>
                                        </Listeners>
                                    </ext:Store>
                                </Bin>
                            </ext:Window>
    
                        </Content>
                    </ext:Panel>
                </Items>
            </ext:Viewport>
        </div>
        </form>
    </body>
    </html>
    Last edited by Daniil; Jul 08, 2014 at 5:26 AM. Reason: [CLOSED]
  2. #2
    Hi @altranvfdev1,

    Welcome to the Ext.NET forums!

    I've reproduced the problem. I have some ideas, it needs to test out.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @altranvfdev1,

    Welcome to the Ext.NET forums!

    I've reproduced the problem. I have some ideas, it needs to test out.

    Thank you Daniil,
    can you suggest me a workaround to temporarily solve the problem, before your fix?

    Thx,
    Roberto
    Last edited by altranvfdev1; Jun 27, 2014 at 3:17 PM.
  4. #4
    I though that AutoDestroy="false" setting for the Store should help, but the problem persists. It needs to investigate further.

    Here is a simplified test case.

    Example
    <%@ Page Language="C#" %>
    
    <script runat="server">
        protected void Button_DirectClick(object sender, DirectEventArgs e)
        {
            this.StoreComboBox.Reload();
            
            var dataLayout = new DataTable();
            
            dataLayout.Columns.Add(new DataColumn("Source_Cell", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Source_Azimuth", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Adj2G_TargetCell", typeof(string)));
    
            for (int i = 1; i <= 1; i++)
            {
                var rowToAdd = dataLayout.NewRow();
    
    
                rowToAdd["Adj2G_TargetCell"] = "Cella 2G " + i.ToString();
                rowToAdd["Source_Azimuth"] = "30";
                rowToAdd["Source_Cell"] = "$-MM@0009988";
    
                dataLayout.Rows.Add(rowToAdd);
            }
            
            StoreGridPanel.DataSource = dataLayout;
            StoreGridPanel.DataBind();
        }
    
        protected void stoCloningCell_Load2G(object sender, StoreReadDataEventArgs e)
        {
            var dataLayout = new DataTable();
            dataLayout.Columns.Add(new DataColumn("Text", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Value", typeof(string)));
    
    
            for (int i = 1; i <= 4; i++)
            {
                var rowToAdd = dataLayout.NewRow();
    
                rowToAdd["Text"] = "xxxx 2G " + i.ToString();
                rowToAdd["Value"] = "xxxx 2G " + i.ToString();
    
                dataLayout.Rows.Add(rowToAdd);
            }
    
            this.StoreComboBox.DataSource = dataLayout;
            this.StoreComboBox.DataBind();
        }
    </script>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:Button runat="server" Text="Load" OnDirectClick="Button_DirectClick" />
    
            <ext:GridPanel runat="server">
                <Store>
                    <ext:Store ID="StoreGridPanel" runat="server">
                        <Model>
                            <ext:Model runat="server">
                                <Fields>
                                    <ext:ModelField Name="Source_Cell" />
                                    <ext:ModelField Name="Source_Azimuth" />
                                    <ext:ModelField Name="Adj2G_TargetCell" />
                                </Fields>
                            </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
                <ColumnModel runat="server">
                    <Columns>
                        <ext:Column runat="server" DataIndex="Source_Cell" Text="Source Cell" />
                        <ext:Column runat="server" DataIndex="Source_Azimuth" Text="Source Azimuth" />
                        <ext:ComponentColumn 
                            runat="server" 
                            Editor="true" 
                            DataIndex="Adj2G_TargetCell"
                            Text="2G Colocated Cell">
                            <Component>
                                <ext:ComboBox
                                    runat="server"
                                    DisplayField="Text"
                                    ValueField="Value"
                                    EmptyText="Select..."
                                    StoreID="StoreComboBox" />
                            </Component>
                        </ext:ComponentColumn>
                    </Columns>
                </ColumnModel>
            </ext:GridPanel>
    
            <ext:Store
                ID="StoreComboBox"
                runat="server"
                OnReadData="stoCloningCell_Load2G"
                AutoLoad="false"
                AutoDestroy="false">
                <Model>
                    <ext:Model runat="server" IDProperty="Value">
                        <Fields>
                            <ext:ModelField Name="Text" />
                            <ext:ModelField Name="Value" />
                        </Fields>
                    </ext:Model>
                </Model>
            </ext:Store>
        </form>
    </body>
    </html>
  5. #5
    Quote Originally Posted by Daniil View Post
    I though that AutoDestroy="false" setting for the Store should help, but the problem persists. It needs to investigate further.

    Here is a simplified test case.

    Example
    <%@ Page Language="C#" %>
    
    <script runat="server">
        protected void Button_DirectClick(object sender, DirectEventArgs e)
        {
            this.StoreComboBox.Reload();
            
            var dataLayout = new DataTable();
            
            dataLayout.Columns.Add(new DataColumn("Source_Cell", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Source_Azimuth", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Adj2G_TargetCell", typeof(string)));
    
            for (int i = 1; i <= 1; i++)
            {
                var rowToAdd = dataLayout.NewRow();
    
    
                rowToAdd["Adj2G_TargetCell"] = "Cella 2G " + i.ToString();
                rowToAdd["Source_Azimuth"] = "30";
                rowToAdd["Source_Cell"] = "$-MM@0009988";
    
                dataLayout.Rows.Add(rowToAdd);
            }
            
            StoreGridPanel.DataSource = dataLayout;
            StoreGridPanel.DataBind();
        }
    
        protected void stoCloningCell_Load2G(object sender, StoreReadDataEventArgs e)
        {
            var dataLayout = new DataTable();
            dataLayout.Columns.Add(new DataColumn("Text", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Value", typeof(string)));
    
    
            for (int i = 1; i <= 4; i++)
            {
                var rowToAdd = dataLayout.NewRow();
    
                rowToAdd["Text"] = "xxxx 2G " + i.ToString();
                rowToAdd["Value"] = "xxxx 2G " + i.ToString();
    
                dataLayout.Rows.Add(rowToAdd);
            }
    
            this.StoreComboBox.DataSource = dataLayout;
            this.StoreComboBox.DataBind();
        }
    </script>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:Button runat="server" Text="Load" OnDirectClick="Button_DirectClick" />
    
            <ext:GridPanel runat="server">
                <Store>
                    <ext:Store ID="StoreGridPanel" runat="server">
                        <Model>
                            <ext:Model runat="server">
                                <Fields>
                                    <ext:ModelField Name="Source_Cell" />
                                    <ext:ModelField Name="Source_Azimuth" />
                                    <ext:ModelField Name="Adj2G_TargetCell" />
                                </Fields>
                            </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
                <ColumnModel runat="server">
                    <Columns>
                        <ext:Column runat="server" DataIndex="Source_Cell" Text="Source Cell" />
                        <ext:Column runat="server" DataIndex="Source_Azimuth" Text="Source Azimuth" />
                        <ext:ComponentColumn 
                            runat="server" 
                            Editor="true" 
                            DataIndex="Adj2G_TargetCell"
                            Text="2G Colocated Cell">
                            <Component>
                                <ext:ComboBox
                                    runat="server"
                                    DisplayField="Text"
                                    ValueField="Value"
                                    EmptyText="Select..."
                                    StoreID="StoreComboBox" />
                            </Component>
                        </ext:ComponentColumn>
                    </Columns>
                </ColumnModel>
            </ext:GridPanel>
    
            <ext:Store
                ID="StoreComboBox"
                runat="server"
                OnReadData="stoCloningCell_Load2G"
                AutoLoad="false"
                AutoDestroy="false">
                <Model>
                    <ext:Model runat="server" IDProperty="Value">
                        <Fields>
                            <ext:ModelField Name="Text" />
                            <ext:ModelField Name="Value" />
                        </Fields>
                    </ext:Model>
                </Model>
            </ext:Store>
        </form>
    </body>
    </html>
    Hi Daniil,
    one of my colleague found this workaround, rebiulding the store each time.

    Roberto

    <%@ Page Title="" Language="C#" AutoEventWireup="true" %>
    
    <%@Import Namespace="System.Data" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    
    <script runat="server">
    
        /// <summary>
        /// AutomaticAdjPlan OnClick Event Handler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnAutomaticAdjPlan_OnClick(object sender, DirectEventArgs e)
        {
            try
            {
    
                //--------------------------------------------------------------
                ShowWindowsAutomaticAdj();
                //--------------------------------------------------------------
            }
            catch (Exception exc)
            {
               // XExt.XUtil.ShowNotification("TITLE", String.Format("{0}: {1}", "NODEB", exc.Message), hideDelay: 5000);
            }
        }
        
        /// <summary>
        /// Show Automatic Plan
        /// </summary>
        public void ShowWindowsAutomaticAdj()
        {
            LoadAdjConfigurationGrid();
            wndAdjAutomaticCreate.Show();
            wndAdjAutomaticCreate.Center();
    
            this.stoTargetCell_StsName2G.LoadData(get2GData());
            
        }
    
        public DataTable get2GData(){
    
            var dataLayout = new DataTable();
            dataLayout.Columns.Add(new DataColumn("Text", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Value", typeof(string)));
    
            for (int i = 1; i <= 4; i++)
            {
                var rowToAdd = dataLayout.NewRow();
    
                rowToAdd["Text"] = "xxxx 2G " + i.ToString();
                rowToAdd["Value"] = "xxxx 2G " + i.ToString();
    
                dataLayout.Rows.Add(rowToAdd);
            }
            return dataLayout;
    
        }
    
        /// <summary>
        /// LoadAdjConfigurationGrid
        /// </summary>
        private void LoadAdjConfigurationGrid()
        {
    
            var dataLayout = new DataTable();
            dataLayout.Columns.Add(new DataColumn("Source_Cell", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Source_Azimuth", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Adj3G_TargetCell", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Adj2G_TargetCell", typeof(string)));
    
    
            for (int i=1; i<=1; i++)
            {
                var rowToAdd = dataLayout.NewRow();
    
                rowToAdd["Adj3G_TargetCell"] = "Cella 3G "+i.ToString();
    
                rowToAdd["Adj2G_TargetCell"] = "Cella 2G " + i.ToString();
                rowToAdd["Source_Azimuth"] = "30";
                rowToAdd["Source_Cell"] = "$-MM@0009988";
                
                dataLayout.Rows.Add(rowToAdd);
            }
            stoAdj_TargetCell.DataSource = dataLayout;
            stoAdj_TargetCell.DataBind();
        }
    
    
        protected void Page_Load(object sender, EventArgs e)
        {
    
            //loadVoidAdjGrid();
            
            //this.stoTargetCell_StsName2G.LoadData(get2GData());
        }
        
        private void loadVoidAdjGrid(){
             var dataLayout = new DataTable();
            dataLayout.Columns.Add(new DataColumn("Source_Cell", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Source_Azimuth", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Adj3G_TargetCell", typeof(string)));
            dataLayout.Columns.Add(new DataColumn("Adj2G_TargetCell", typeof(string)));
    
            for (int i=1; i<=1; i++)
            {
                var rowToAdd = dataLayout.NewRow();
    
                rowToAdd["Adj3G_TargetCell"] = "Cella 3G "+i.ToString();
    
                rowToAdd["Adj2G_TargetCell"] = "Cella 2G " + i.ToString();
                rowToAdd["Source_Azimuth"] = "30";
                rowToAdd["Source_Cell"] = "$-MM@0009988";
                
                dataLayout.Rows.Add(rowToAdd);
            }
            stoAdj_TargetCell.DataSource = dataLayout;
            stoAdj_TargetCell.DataBind();
        }
    
    </script>
    
    
    <script type="text/javascript">
    
        function deepCloneStore(source) {
            var target = Ext.create('Ext.data.Store', {
                model: source.model
            });
    
            Ext.each(source.getRange(), function (record) {
                var newRecordData = Ext.clone(record.copy().data);
                var model = new source.model(newRecordData, newRecordData.id);
    
                target.add(model);
            });
    
            return target;
        }
    
    </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 id="Head1" runat="server">
        <title>Configuration Manager</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <ext:ResourceManager ID="ResourceManager1" runat="server" AjaxTimeout="3600000"></ext:ResourceManager>
            <ext:Viewport ID="vwpMaster" runat="server" Layout="FitLayout">
                <Items>
                    <ext:Panel ID="pnlCenter" runat="server" Title="Center" Header="false" Layout="fit">
                        <TopBar>
                            <ext:Toolbar ID="Toolbar1" runat="server">
                                <Items>
                                     <ext:Button ID="btnRanManagament" runat="server" Text="Manage Ran" Pressed="False" AllowDepress="False" Icon="TransmitRed">
                                        <Menu>
                                            <ext:Menu ID="mnuManageSector" runat="server">
                                                <Items>
    
                                                    <ext:MenuItem ID="mnuAutomaticAdjPlan" runat="server" Text="Automatic Adj Plan" Icon="ShapeMoveBack">
                                                        <DirectEvents>
                                                            <Click OnEvent="btnAutomaticAdjPlan_OnClick">
                                                                <EventMask ShowMask="true" />
                                                            </Click>
                                                        </DirectEvents>
                                                    </ext:MenuItem>
                                                </Items>
                                            </ext:Menu>
                                        </Menu>
                                    </ext:Button>
                                </Items>
                            </ext:Toolbar>
                        </TopBar>
                        <items>
                            <ext:Window ID="wndAdjAutomaticCreate" runat="server" Icon="Cmy" Width="800"  Height="300" Title="Adj Plan Details"
                                AutoShow="false" Modal="true" Hidden="true" Maximizable="false" Layout="fit" AutoScroll="false"
                                    Maximized="false" Resizable="false" Closable="true" CloseAction="Hide">
                                <Items>
                                    <ext:GridPanel ID="gplAdj_TargetCell" runat="server" Border="false" SortableColumns="false" AutoScroll="true">
                                        <Store>
                                            <ext:Store ID="stoAdj_TargetCell" runat="server">
                                                <Model>
                                                    <ext:Model ID="modAdj_TargetCell" runat="server">
                                                        <Fields>
                                                            <ext:ModelField Name="Source_Cell" Type="String" />
                                                            <ext:ModelField Name="Source_Azimuth" Type="String" />
                                                            <ext:ModelField Name="Adj3G_TargetCell" Type="String" />
                                                            <ext:ModelField Name="Adj2G_TargetCell" Type="String" />
                                                        </Fields>
                                                    </ext:Model>
                                                </Model>
                                            </ext:Store>
                                        </Store>
                                        <ColumnModel ID="ColumnModelAdj" runat="server">
                                            <Columns>
                                                <ext:ComponentColumn ID="clnAdj2G_TargetCell" runat="server" Editor="true" DataIndex="Adj2G_TargetCell" Flex="1"
                                                    Text="2G Colocated Cell">
                                                    <Component>
                                                        <ext:ComboBox ID="cmbAdj2G_TargetCell" 
                                                                    runat="server"
                                                                    DisplayField="Text"
                                                                    ValueField="Value" 
                                                                    EmptyText="Select..." >
    
                                                        </ext:ComboBox>  
                                                    </Component>
                                                    <Listeners>
                                                        <BeforeBind Handler="e.config[0].store = deepCloneStore(#{stoTargetCell_StsName2G});">
                                                        </BeforeBind>
                                                    </Listeners>
                                                </ext:ComponentColumn>
                                            </Columns>
                                        </ColumnModel>
                                    </ext:GridPanel>
                                </Items>
                                <Bin>
                                    <ext:Store ID="stoTargetCell_StsName2G" runat="server" AutoLoad="false">
                                        <Model>
                                            <ext:Model ID="Model2G" runat="server" IDProperty="Value" >
                                                <Fields>
                                                    <ext:ModelField Name="Text" Type="String" />
                                                    <ext:ModelField Name="Value" Type="String" />
                                                </Fields>
                                            </ext:Model>
                                        </Model>
                                    </ext:Store>
                                </Bin>
                            </ext:Window>
                        </items>
                    </ext:Panel>
                </Items>
            </ext:Viewport>
        </div>
        </form>
    
    
                                    
    </body>
    </html>
  6. #6
    Thank you for posting the workaround.

    I have found the reason. Created an Issue:
    https://github.com/extnet/Ext.NET/issues/515

    It has been fixed in the SVN trunk, revision #5886. It will go to the v2.5.3 release.

    In any way you'll need to set up AutoDestroy="false" for the Store (that you bind to the ComboBoxes).

    Then update from SVN or set UseHiddenField="false" for the ComboBox.
  7. #7
    Quote Originally Posted by Daniil View Post
    Thank you for posting the workaround.

    I have found the reason. Created an Issue:
    https://github.com/extnet/Ext.NET/issues/515

    It has been fixed in the SVN trunk, revision #5886. It will go to the v2.5.3 release.

    In any way you'll need to set up AutoDestroy="false" for the Store (that you bind to the ComboBoxes).

    Then update from SVN or set UseHiddenField="false" for the ComboBox.
    Thank you very much Daniil,
    I will download the realease soon.
    Cheers

    Roberto
  8. #8
    Quote Originally Posted by altranvfdev1 View Post
    I will download the realease soon.
    Do you mean v2.5.3? It is not available yet. You can download the Ext.NET sources from the trunk in SVN .
  9. #9
    Quote Originally Posted by Daniil View Post
    Do you mean v2.5.3? It is not available yet. You can download the Ext.NET sources from the trunk in SVN .
    Sorry Daniil,
    I meant the source in the SVN trunk :)

    Thx
    Roberto

Similar Threads

  1. Replies: 1
    Last Post: Dec 10, 2013, 10:42 AM
  2. Replies: 3
    Last Post: Nov 05, 2013, 9:34 AM
  3. Componentcolumn with combobox
    By joko in forum 2.x Help
    Replies: 2
    Last Post: Oct 09, 2013, 12:26 PM
  4. Replies: 0
    Last Post: Feb 22, 2013, 2:24 PM
  5. Replies: 0
    Last Post: Sep 22, 2010, 3:42 AM

Posting Permissions