Apr 12, 2012, 4:00 PM
[CLOSED] Label in CompositeField issue
Hi,
I have a Label control inside a FormPanel's CompositeField to display some read-only data. I need to assign the Text property of the Label in Combo's Select DirectEvent. There's no error in runtime, however, the label remains empty. If I add a TextField control alongside the Label and assign Text for both, then both become populated correctly. Please advise.
Vadym
I have a Label control inside a FormPanel's CompositeField to display some read-only data. I need to assign the Text property of the Label in Combo's Select DirectEvent. There's no error in runtime, however, the label remains empty. If I add a TextField control alongside the Label and assign Text for both, then both become populated correctly. Please advise.
<ext:FormPanel ID="FormPanel1" runat="server">
<Items>
<ext:CompositeField runat="server" FieldLabel="My Test">
<Items>
<ext:Label runat="server" ID="Label1"></ext:Label>
<%--<ext:TextField ID="Text1" runat="server"></ext:TextField>--%>
</Items>
</ext:CompositeField>
</Items>
</ext:FormPanel>
protected void Combo1_Select(object sender, DirectEventArgs e)
{
this.Label1.Text="Something in the Label";
// this.Text1.Text="Something in the TextField";
}
Thanks,Vadym
Last edited by Daniil; Apr 12, 2012 at 5:24 PM.
Reason: [CLOSED]