PDA

View Full Version : [CLOSED] FormPanel LabelAlign



RCN
Nov 24, 2014, 8:07 PM
I would like to know how to set the LabelAlign for the entire FormPanel. On previous versions it was possible to set FormPanel's FieldDefaults.LabelAlign property, but on version 3x i was just able to set Field's LabelAlign property



<!DOCTYPE html>
<html>
<body>
<ext:ResourceManager runat="server" SeparateUIStyles="false" Theme="Gray" />
<ext:FormPanel
runat="server"
Width="600"
Height="300"
Title="Ext.Net"
Closable="false">
<Items>
<ext:TextField
runat="server"
FieldLabel="Ext.Net" LabelAlign="Top" />
</Items>
</ext:FormPanel>
</body>
</html>


Thanks in advance

Daniil
Nov 25, 2014, 3:23 PM
Hi Raphael,

Hmm, it seems I don't see any change in that. You should be able to still use a FormPanel's FieldDefaults.

Example

<%@ Page Language="C#" %>

<!DOCTYPE html>
<html>
<body>
<ext:ResourceManager runat="server" />

<ext:FormPanel runat="server" Width="600">
<FieldDefaults LabelAlign="Top" />
<Items>
<ext:TextField runat="server" FieldLabel="Ext.Net v2" />
<ext:TextField runat="server" FieldLabel="Ext.Net v3" />
</Items>
</ext:FormPanel>
</body>
</html>

RCN
Nov 25, 2014, 7:26 PM
Sorry for that Daniil. It was a problem on the intellisense of my visual studio. Please mark this thread as closed.