Apr 07, 2009, 3:11 PM
How can i access to panel controls
Hi!
I have a Panel in a FormLayout. I need to know how i can to access to the fields textfield. I'm using visual basic. I know that if I only would have a FormLayout, I can access the fields with the code:
.................................................. ...............................
Dim formulario As FormLayout
For Each caja As Control In Formulario.Controls
/....
Next
.................................................. ........................
but i need the Panel.
The ext code is:
Any ideas ???
Thanks
I have a Panel in a FormLayout. I need to know how i can to access to the fields textfield. I'm using visual basic. I know that if I only would have a FormLayout, I can access the fields with the code:
.................................................. ...............................
Dim formulario As FormLayout
For Each caja As Control In Formulario.Controls
/....
Next
.................................................. ........................
but i need the Panel.
The ext code is:
<ext:FormLayout ID="FormLayout1" runat="server">
<ext:Anchor>
<ext:Panel ID="Panel1" runat="server" AutoHeight="true" FormGroup="true">
<Body>
<table>
<tr>
<td style="width:4%;" align="left">
</td>
<td style="width:18%;" align="left">
<p>Nombre</p>
</td>
<td style="width:78%;" align="left">
<ext:TextField ID="txtNombre" runat="server" FieldLabel="Nombre" Text="" MaxLength="50" MaxLengthText="Ha superado el máximo número de caracteres" AllowBlank="false" ValidationGroup="FORM" BlankText="Debe rellenar este campo." Width="345"/>
</td>
</tr>
</table>
<table>
<tr>
<td style="width:4%;" align="left">
</td>
<td style="width:18%;" align="left">
<p>Razón Social</p>
</td>
<td style="width:78%;" align="left" >
<ext:TextField ID="txtRazonSocial" runat="server" FieldLabel="Razon Social" Text="" MaxLength="50" MaxLengthText="Ha superado el máximo número de caracteres" AllowBlank="true" ValidationGroup="FORM" BlankText="Debe rellenar este campo." Width="345"/>
</td>
</tr>
</table>
<table>
<tr>
<td style="width:8.8%;" align="left">
</td>
<td style="width:38%;" align="left">
<p>CIF</p>
</td>
<td style="width:56%;" align="left" >
<ext:TextField ID="txtCIF" runat="server" FieldLabel="Razon Social" Text="" MaxLength="15" MaxLengthText="Ha superado el máximo número de caracteres" AllowBlank="true" ValidationGroup="FORM" BlankText="Debe rellenar este campo." Width="110" />
</td>
</tr>
</table>
</Body>
</ext:Panel>
</ext:Anchor>
</ext:FormLayout>
Any ideas ???
Thanks