PDA

View Full Version : [CLOSED] LabelAlign in checkbox appears don┬┤t take effect.



supera
Feb 23, 2012, 3:28 PM
Hi

I set LabelAling property in checkbox, but this action appears don┤t take effect.

What am I doing wrong?

My test page:


<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test13.aspx.vb" Inherits="WebApplication3.Test13" %>
<%@ 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 runat="server">
<title></title>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" Locale="pt-BR" Namespace="SuperaWeb.SGE.Agendas.Salas" />
<form id="form1" runat="server">
<ext:FieldSet runat="server" ID="fsSistemaSom" Layout="AbsoluteLayout" Title="Label Align=Right" Width="350" Height="130">
<Defaults>
<ext:Parameter Name="LabelAlign" Value="Right" Mode="Value" />
</Defaults>
<Items>
<ext:Checkbox runat="server" ID="chkMicrofoneMesa" FieldLabel="Microfone na mesa" X="5" Y="5" LabelWidth="250" Width="300"/>
<ext:Checkbox runat="server" ID="chkMicrofoneSemFio" FieldLabel="Microfone sem fio" X="5" Y="25" LabelWidth="250" Width="300"/>
<ext:Checkbox runat="server" ID="chkMicrofonePulpito" FieldLabel="Microfone P˙blico" X="5" Y="45" LabelWidth="250" Width="300"/>
<ext:TextField runat="server" ID="txtSistemaSom_Outros" FieldLabel="Outro" X="5" Y="65" Width="120" LabelAlign="Top"/>
</Items>
</ext:FieldSet>
<ext:FieldSet runat="server" ID="FieldSet1" Layout="AbsoluteLayout" Title="Label Align=Left" Width="350" Height="130">
<Defaults>
<ext:Parameter Name="LabelAlign" Value="Left" Mode="Value" />
</Defaults>
<Items>
<ext:Checkbox runat="server" ID="Checkbox1" FieldLabel="Microfone na mesa" X="5" Y="5" LabelWidth="250" Width="300"/>
<ext:Checkbox runat="server" ID="Checkbox2" FieldLabel="Microfone sem fio" X="5" Y="25" LabelWidth="250" Width="300"/>
<ext:Checkbox runat="server" ID="Checkbox3" FieldLabel="Microfone P˙blico" X="5" Y="45" LabelWidth="250" Width="300"/>
<ext:TextField runat="server" ID="TextField1" FieldLabel="Outro" X="5" Y="65" Width="120" LabelAlign="Top"/>
</Items>
</ext:FieldSet>
</form>
</body>
</html>

Daniil
Feb 23, 2012, 3:52 PM
Hi,

The LabelAlign value should be lower case when you set up it via Defaults.

<ext:Parameter Name="LabelAlign" Value="right" Mode="Value" />

But, I guess, this is not what you need, please try to use BoxLabel instead of FieldLabel. A BoxLabel appears on the right from a Checkbox.

supera
Feb 23, 2012, 4:14 PM
Hi Daniil

You are right! I wish the boxlabel property!

Thanks a lot.