Aug 27, 2010, 9:48 AM
Display problem with disabled fields
Hi,
in the following example all form fields are disabled:
I think the problem is due to the fact that the fields of the third row are contained in a container.
Bye,
Stefano
in the following example all form fields are disabled:
<%@ Page Language="C#" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<!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>Test</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Panel
ID="Panel1"
runat="server"
Title="Simple Form"
PaddingSummary="5px 5px 0"
Width="600"
Frame="true"
ButtonAlign="Center"
Layout="Form">
<Items>
<ext:TextField
ID="Username"
runat="server"
Disabled="true"
DataIndex="Username"
FieldLabel="Username"
MaxLength="40"
AnchorHorizontal="100%" />
<ext:SelectBox
ID="cboSex"
runat="server"
Disabled="true"
DataIndex="Sex"
HiddenName="Sex"
FieldLabel="Sex"
Editable="false"
TypeAhead="true"
EmptyText="....."
AnchorHorizontal="100%"
ColumnWidth=".50">
<Items>
<ext:ListItem Text="Male" Value="M" />
<ext:ListItem Text="Female" Value="F" />
</Items>
</ext:SelectBox>
<ext:Container ID="DummyContainer77" runat="server" Layout="Column" Height="27">
<Items>
<ext:DateField
ID="LoginExpirationDate"
runat="server"
Disabled="true"
DataIndex="LoginExpirationDate"
Format="dd/MM/yyyy"
FieldLabel="Expiration"
AnchorHorizontal="100%"
ColumnWidth=".36" />
<ext:Label ID="Label6" runat="server" ColumnWidth=".035" />
<ext:TextField
ID="AllowedAccessFromIP"
runat="server"
Disabled="true"
DataIndex="AllowedAccessFromIP"
FieldLabel="Enabled IP"
LabelWidth = "75"
MaxLength="40"
AnchorHorizontal="100%"
ColumnWidth=".37" />
<ext:Label ID="Label7" runat="server" ColumnWidth=".035" />
<ext:CheckBox
ID="IsDisabled"
runat="server"
Disabled="true"
DataIndex="IsDisabled"
FieldLabel="Disabled"
LabelWidth="103"
ColumnWidth=".20" />
</Items>
</ext:Container>
</Items>
</ext:Panel>
</form>
</body>
</html>
You can see in the attached image that while the field labels in the third row are grayed-out, those of the first and second row are not.I think the problem is due to the fact that the fields of the third row are contained in a container.
Bye,
Stefano