[CLOSED] Mandatory Field Indicator displayed inside combobox

  1. #1

    [CLOSED] Mandatory Field Indicator displayed inside combobox

    Hi,

    The mandatory field indicator for combobox is coming inside the combobox. Once we resze the page, it aligns properly. This is happening in IE and FF.

    Click image for larger version. 

Name:	ComboboxUI Issue.jpg 
Views:	131 
Size:	6.9 KB 
ID:	3785Click image for larger version. 

Name:	ComboboxUI Issue.jpg 
Views:	131 
Size:	6.9 KB 
ID:	3785

    Please advise.

    Thanks
    Anulekha
    Last edited by Daniil; Feb 03, 2012 at 6:46 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Are the ComboBoxes inside a FormLayout?

    The field indicator feature requires to be used within a FormLayout context.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    Are the ComboBoxes inside a FormLayout?

    The field indicator feature requires to be used within a FormLayout context.
    hi Daniil,

    The combo boxes are inside container with form-layout.

    Thanks
    Anulekha
  4. #4
    I was unable to reproduce.

    Example
    <%@ 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 runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Container runat="server" Layout="FormLayout">
                <Items>
                    <ext:ComboBox runat="server" FieldLabel="ComboBox" IndicatorIcon="BulletRed" />
                    <ext:ComboBox runat="server" FieldLabel="ComboBox" IndicatorIcon="BulletRed" />
                </Items>
            </ext:Container>
        </form>
    </body>
    </html>
    Could you provide your sample to reproduce?
  5. #5
    Hi Daniil,

    Below is the code.

      <nxtwc:NxtFormPanel ID="pnlRGS" runat="server" AnchorHorizontal="100%" AnchorVertical="100%"
                BodyStyle="background-color: #DFE8F6;" Border="false" AutoScroll="true">
                <Items>
                    <ext:Container ID="cntMainRGS" runat="server" Layout="ColumnLayout" AnchorVertical="100%"
                        AnchorHorizontal="100%" BodyStyle="background-color: #DFE8F6;">
                        <Items>
                            <ext:Container ID="cntRGSType" runat="server" ColumnWidth=".5" BodyStyle="background-color: #DFE8F6;"
                                Layout="FormLayout" AnchorVertical="100%" AnchorHorizontal="100%" LabelWidth="150">
                                <Items>
                                    <nxtwc:NxtDisplayField ID="dispRGSCompany" DataIndex="CompanyName" runat="server"
                                        FieldLabel="Company" AnchorHorizontal="70%">
                                    </nxtwc:NxtDisplayField>
                                    <nxtwc:NxtComboBox ID="cmbRGSRouteType" DataIndex="RouteType" runat="server" FieldLabel="RouteType"
                                        StoreID="dsRouteType" IndicatorIcon="BulletRed" FireSelectOnLoad="true" DisplayField="Name"
                                        ValueField="ID" AnchorHorizontal="70%">
                                        <Listeners>
    
                                        <Select Handler ="
                                        
                                        SetRouteTypeView({RouteTypeCombo:#{cmbRGSRouteType},
                                        SourceLocCombo:#{cmbRGSSrcLocation},SupplierTypeCombo:#{cmbRGSSupplierType},
                                        SuppliersCombo:#{cmbRGSSupplierName},TransferLeadTime:#{txtRGSTransferTime}});" />
                                        </Listeners>
                                        
                                        
                                    </nxtwc:NxtComboBox>
                                    <nxtwc:NxtTextField ID="txtRGSRouteName" DataIndex="RouteName" runat="server" FieldLabel="RouteName"
                                        IndicatorIcon="BulletRed" AnchorHorizontal="70%"></nxtwc:NxtTextField>
                                    <nxtwc:NxtComboBox ID="cmbRGSDestLocation" DataIndex="DestinationLocation" runat="server"
                                        StoreID="dsStockingLocation" FieldLabel="DestinationLoc" IndicatorIcon="BulletRed"
                                        DisplayField="Name" ValueField="ID" AnchorHorizontal="70%">
                                        
                                        
                                        
                                    </nxtwc:NxtComboBox>
                                    <nxtwc:NxtComboBox ID="cmbRGSSrcLocation" DataIndex="SourceLocation" runat="server"
                                        FieldLabel="SourceLoc" IndicatorIcon="BulletRed" AnchorHorizontal="70%" DisplayField="Name"
                                        ValueField="ID" StoreID="dsSourceStockingLocations" Hidden="true">
                                       
                                        
                                    </nxtwc:NxtComboBox>
                                    <nxtwc:NxtComboBox ID="cmbRGSSupplierType" FireSelectOnLoad="true" DataIndex="SupplierType"
                                        runat="server" FieldLabel="SupplierType" IndicatorIcon="BulletRed" DisplayField="Name"
                                        ValueField="ID" StoreID="dsSupplierType" AnchorHorizontal="70%" Hidden="true">
                                        
                                         <Listeners>
    
                                        <Select Handler ="
    
                                        SetSupplierTypeView({ComboSupplierType:#{cmbRGSSupplierType},ComboSuppliers:#{cmbRGSSupplierName}});
                                        " />
                                        
                                        
                                        </Listeners>
                                    </nxtwc:NxtComboBox>
                                    <nxtwc:NxtComboBox ID="cmbRGSSupplierName" DataIndex="SupplierName" runat="server"
                                        FieldLabel="SupplierName" IndicatorIcon="BulletRed" AnchorHorizontal="70%" DisplayField="Name"
                                        ValueField="ID" StoreID="dsSuppliers" Hidden="true"></nxtwc:NxtComboBox>
                                </Items>
                            </ext:Container>
                            <ext:Container ID="cntRGSOthers" runat="server" ColumnWidth=".5" BodyStyle="background-color: #DFE8F6;"
                                Layout="FormLayout" AnchorVertical="100%" AnchorHorizontal="100%" LabelWidth="150">
                                <Items>
                                    <nxtwc:NxtComboBox ID="cmbRGSItemClassification" DataIndex="ItemClassification" runat="server"
                                        FieldLabel="ItemClassification" AnchorHorizontal="70%">
                                        <Items>
                                        <ext:ListItem Text="All" Value="All" AutoDataBind="true" />
                                        
                                        </Items>
                                        
                                    </nxtwc:NxtComboBox>
                                    <nxtwc:NxtNumberField ID="txtRGSTransferTime" DataIndex="TranferLeadTime" runat="server"
                                        FieldLabel="TransferTime" AnchorHorizontal="70%" Hidden="true"></nxtwc:NxtNumberField>
                                    <nxtwc:NxtCheckbox ID="chkRGSApprovalRequired" DataIndex="IsApprovalRequired" runat="server"
                                        FieldLabel="ApprovalReq">
                                    </nxtwc:NxtCheckbox>
                                    <nxtwc:NxtTextArea ID="txtareaRGSRouteDesc" DataIndex="Description" runat="server"
                                        FieldLabel="RouteDescription" AnchorHorizontal="70%">
                                    </nxtwc:NxtTextArea>
                                </Items>
                            </ext:Container>
                        </Items>
                    </ext:Container>
                </Items>
                      </nxtwc:NxtFormPanel>

    Quote Originally Posted by Daniil View Post
    I was unable to reproduce.

    Example
    <%@ 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 runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Container runat="server" Layout="FormLayout">
                <Items>
                    <ext:ComboBox runat="server" FieldLabel="ComboBox" IndicatorIcon="BulletRed" />
                    <ext:ComboBox runat="server" FieldLabel="ComboBox" IndicatorIcon="BulletRed" />
                </Items>
            </ext:Container>
        </form>
    </body>
    </html>
    Could you provide your sample to reproduce?
  6. #6
    I can't run your code because it throws errors, but created my own sample based on your one. Though I still can't to reproduce the problem.

    Example
    <%@ 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 runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:FormPanel runat="server" Height="200">
                <Items>
                    <ext:Container 
                        runat="server" 
                        Layout="ColumnLayout" 
                        AnchorHorizontal="100%" 
                        AnchorVertical="100%">
                        <Items>
                            <ext:Container runat="server" Layout="FormLayout" ColumnWidth="0.5">
                                <Items>
                                    <ext:ComboBox 
                                        runat="server" 
                                        FieldLabel="ComboBox" 
                                        IndicatorIcon="BulletRed" 
                                        AnchorHorizontal="70%" />
                                    <ext:ComboBox 
                                        runat="server" 
                                        FieldLabel="ComboBox" 
                                        IndicatorIcon="BulletRed" 
                                        AnchorHorizontal="70%" />
                                </Items>
                            </ext:Container>
                            <ext:Container runat="server" Layout="FormLayout" ColumnWidth="0.5">
                                <Items>
                                    <ext:ComboBox 
                                        runat="server" 
                                        FieldLabel="ComboBox" 
                                        IndicatorIcon="BulletRed" 
                                        AnchorHorizontal="70%" />
                                    <ext:ComboBox 
                                        runat="server" 
                                        FieldLabel="ComboBox" 
                                        IndicatorIcon="BulletRed" 
                                        AnchorHorizontal="70%" />
                                </Items>
                            </ext:Container>
                        </Items>
                    </ext:Container>
                </Items>
            </ext:FormPanel>
        </form>
    </body>
    </html>
  7. #7
    Hi Daniil,

    We have 2 combo boxes hidden in 2nd container . Based on certain selection this is made visible. We are getting alignment issue for these controls.

    Thanks
    Anulekha






    Quote Originally Posted by Daniil View Post
    I can't run your code because it throws errors, but created my own sample based on your one. Though I still can't to reproduce the problem.

    Example
    <%@ 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 runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:FormPanel runat="server" Height="200">
                <Items>
                    <ext:Container 
                        runat="server" 
                        Layout="ColumnLayout" 
                        AnchorHorizontal="100%" 
                        AnchorVertical="100%">
                        <Items>
                            <ext:Container runat="server" Layout="FormLayout" ColumnWidth="0.5">
                                <Items>
                                    <ext:ComboBox 
                                        runat="server" 
                                        FieldLabel="ComboBox" 
                                        IndicatorIcon="BulletRed" 
                                        AnchorHorizontal="70%" />
                                    <ext:ComboBox 
                                        runat="server" 
                                        FieldLabel="ComboBox" 
                                        IndicatorIcon="BulletRed" 
                                        AnchorHorizontal="70%" />
                                </Items>
                            </ext:Container>
                            <ext:Container runat="server" Layout="FormLayout" ColumnWidth="0.5">
                                <Items>
                                    <ext:ComboBox 
                                        runat="server" 
                                        FieldLabel="ComboBox" 
                                        IndicatorIcon="BulletRed" 
                                        AnchorHorizontal="70%" />
                                    <ext:ComboBox 
                                        runat="server" 
                                        FieldLabel="ComboBox" 
                                        IndicatorIcon="BulletRed" 
                                        AnchorHorizontal="70%" />
                                </Items>
                            </ext:Container>
                        </Items>
                    </ext:Container>
                </Items>
            </ext:FormPanel>
        </form>
    </body>
    </html>
  8. #8
    Quote Originally Posted by AnulekhaK View Post
    We have 2 combo boxes hidden in 2nd container . Based on certain selection this is made visible. We are getting alignment issue for these controls.
    Please try to set up HideMode="Offsets" for that container.

Similar Threads

  1. [CLOSED] Set HTMLEditor as a Mandatory field
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 12, 2015, 7:56 PM
  2. Replies: 1
    Last Post: Apr 09, 2012, 5:03 PM
  3. Field indicator not showing?
    By wexman in forum 1.x Help
    Replies: 6
    Last Post: Mar 03, 2011, 1:37 PM
  4. Replies: 32
    Last Post: Nov 17, 2010, 12:08 PM
  5. [CLOSED] Issue w/new Field.Indicator
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 06, 2010, 12:23 PM

Posting Permissions