[CLOSED] Ext.net v2 Beta release: Checkbox BoxLabel property is

  1. #1

    [CLOSED] Ext.net v2 Beta release: Checkbox BoxLabel property is

    The ext:checkbox BoxLabel property are getting the value passed in ext:Parameter "LabelAlign" of her container.
    In DP1 this don't occurs.

    I think this behavior is right. Please, confirm to me... If this is normal behavior, I change in my source code the checkbox LabelAlign property.

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test38.aspx.vb" Inherits="WebApplication3.Test38" %>
    <%@ 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="resManagerDividas" runat="server" />
        <form id="form1" runat="server">
        <ext:Viewport ID="Viewport1" runat="server" Layout="AbsoluteLayout">
            <Items>
                
                <ext:Panel ID="paneAgendamentosSalaSGE" runat="server" Border="true" BodyPadding="3" Layout="AbsoluteLayout" X="10" Y="10">
                    <Defaults>
                        <ext:Parameter Name="LabelAlign" Value="top" Mode="Value" />
                    </Defaults>
                    <Items>
                        <ext:Checkbox runat="server" ID="chk1" BoxLabel="Checkbox label 1" />
                    </items>
                </ext:Panel>
    
                <ext:Panel ID="Panel1" runat="server" Border="true" BodyPadding="3" Layout="AbsoluteLayout"  X="10" Y="100">
                    <Items>
                        <ext:Checkbox runat="server" ID="chk2" BoxLabel="Checkbox label 2" />
                    </items>
                </ext:Panel>
    
            </Items>
        </ext:Viewport>
        </form>
    </body>
    </html>
    Last edited by Daniil; Mar 19, 2012 at 2:38 PM. Reason: [CLOSED]
  2. #2
    Hi,

    LabelAlign affects on FieldLabel only therefore please use FieldLabel if need top aligning
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Hi Vladimir!

    Well... I donīt need align top to ext:checkbox... I donīt wish this behavior... but when I set ext:Parameter "LabelAlign" of her container, the BoxLabel are align to Top in Beta version...

    Please, see my sample project.
  4. #4
    Now I see,
    If set LabelAlign="Top" then will be generated table row above checkbox (even if you don't set FieldLabel) therefore i can suggest to set LabelAlign="Right" for checkbox to prevent that row generation
    Vladimir Shcheglov
    Sr. Developer
  5. #5
    Ok!

    Thanks

Similar Threads

  1. 2.x Beta Release 2
    By GKG4 in forum 2.x Help
    Replies: 4
    Last Post: May 11, 2012, 11:47 AM
  2. [CLOSED] Ext.net 2v Beta Release: Calendar
    By supera in forum 2.x Premium Help
    Replies: 2
    Last Post: Mar 28, 2012, 11:13 AM
  3. Replies: 3
    Last Post: Mar 26, 2012, 1:43 PM
  4. [CLOSED] checkbox duplicate boxlabel
    By PoloTheMonk in forum 1.x Premium Help
    Replies: 10
    Last Post: Nov 02, 2011, 11:08 AM
  5. [CLOSED] Checkbox BoxLabel font different
    By jchau in forum 1.x Premium Help
    Replies: 1
    Last Post: Jan 27, 2009, 8:15 AM

Posting Permissions