Aug 03, 2011, 10:27 PM
Setting dataindex on usercontrol is not correctly showing the data in the combobox contained in the usercontrol
I have the following code.
The code inside my mbr:list control looks like this
<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