Setting dataindex on usercontrol is not correctly showing the data in the combobox contained in the usercontrol

  1. #1

    Setting dataindex on usercontrol is not correctly showing the data in the combobox contained in the usercontrol

    I have the following code.
            <ext:FormPanel ID=testContainer runat="server"> 
                 <Content><mgr:list DataIndex = "sampleCode" runat="server" width=70px />
                            <ext:ComboBox ID="test" runat="server"  DataIndex = "sampleCode"/>
                 </Content>            
             </ext:FormPanel>
    The mgr:list control shows nothing but the test combo box shows the data correctly.

    The code inside my mbr:list control looks like this

    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>      
        <ext:ComboBox ID="cboTest" runat="server" >
        </ext:ComboBox>
    In the code behind I am setting the following info.

    [DefaultValue( "" )]
            [Bindable( true )]
            public string FieldLabel {
                get {
                    return cboList.FieldLabel;
                }
                set {
                    cboList.FieldLabel = value;
                }
            }
            [DefaultValue( "" )]
            [Bindable( true )]
            public string Text {
                get {
                    return cboList.Text;
                }
                set {
                    cboList.Text = value;
                }
            }
            [DefaultValue( null )]
            [Bindable( true )]
            public Object Value {
                get {
                    return cboList.Value;
                }
                set {
                    cboList.Value = value;
                }
            }      
            [DefaultValue( "" )]
            [Bindable( true )]
            public string DataIndex {
                get {
                    return cboList.DataIndex;
                    
                }
                set {
                    cboList.DataIndex = value;
                    
                }
            }
    Last edited by Daniil; Aug 08, 2011 at 5:46 PM. Reason: Please use [CODE] tags

Similar Threads

  1. Replies: 1
    Last Post: May 29, 2013, 6:00 PM
  2. Replies: 8
    Last Post: Feb 15, 2012, 9:04 AM
  3. Ext.onReady,userControl and ComboBox
    By dukeucha in forum 1.x Help
    Replies: 1
    Last Post: Jun 14, 2010, 6:53 AM
  4. [CLOSED] [1.0] DirectMethod - Page . UserControl . UserControl
    By Patrick in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 25, 2010, 9:33 AM
  5. Store in UserControl causes 404 when data is refreshed
    By roastedamoeba in forum 1.x Help
    Replies: 1
    Last Post: Dec 30, 2009, 11:51 AM

Posting Permissions