When I run your sample in the same container as my fields, I see this in the rendered source:
<label id="ext-gen139" class="x-form-item-label" style="width: 100px;">Label:</label>
No style is added from LabelStyle.
These controls would be inside a container if that matters. Also they need to be DisplayFields not TextFields (but I think the label style will work the same once fixed).
I will run your sample standalone and see how it works, but the real case is I need the labels to be the correct style inside the Panel -> Container.
Originally Posted by
Vladimir
For me all works as expected
Please provide your test case
<%@ 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 id="ctHtml" xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManagerMain" runat="server" />
<ext:Panel
runat="server"
Title="Label Style"
Width="400"
Layout="Form">
<Items>
<ext:TextField
runat="server"
FieldLabel="Label"
LabelStyle="color:blue;font-weight:bold;"
AnchorHorizontal="95%"
/>
</Items>
</ext:Panel>
</form>
</body>
</html>