[CLOSED] V2.1 DropDownField readOnly & TriggerIcon

  1. #1

    [CLOSED] V2.1 DropDownField readOnly & TriggerIcon

    Hi, then set readonly = true the border right of the dropdownfield is not redraw the the TriggerIcon is set..

    <%@ Page Language="C#"  %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head runat="server">
            <title></title>
        </head>
        <body>
            <form id="form1" runat="server">
                <ext:ResourceManager ID="ResourceManager1" runat="server"  Namespace="">
                </ext:ResourceManager>
                <ext:Viewport ID="ViewportArticoli" runat="server" Layout="BorderLayout">
                    <Items>                  
                        <ext:FormPanel
                            ID="FormPanelArticolo"
                            runat="server"
                            Region="Center"
                            Split="true"
                            Margins="0 5 5 0"
                            Title="Seleziona un articolo dalla lista"
                            Width="450" IconPath="Images/32/art32.png" >                       
                            <FieldDefaults LabelWidth="90" />
                            <Items>     
                                 <ext:DropDownField ID="DropDownField1" runat="server" MaskRe="[0-9/,|.|/A-Z]" FieldStyle="text-transform:uppercase;" ReadOnly="false"
                                                                   TriggerIcon="SimpleArrowDown" AnchorHorizontal="-10" MarginSpec="5 5 10 5" FieldLabel="Elenco taglie" >
                                                    <Component>
                                                        <ext:GridPanel ID="GridPanel1" runat="server" >
                                                            <ColumnModel>
                                                                <Columns>
                                                                    <ext:Column runat="server" ID="Column1" DataIndex="TagDes" Align="Left" Flex="1" Text="Taglie articoli"  />
                                                                </Columns>
                                                            </ColumnModel>
                                                            <SelectionModel>
                                                                <ext:RowSelectionModel ID="RowSelectionModel1" Mode="Single" runat="server">
                                                                    <Listeners>
    
                                                                    </Listeners>
                                                                </ext:RowSelectionModel>
                                                            </SelectionModel>
                                                        </ext:GridPanel>
                                                    </Component>
                                                    <Listeners>
    
                                                    </Listeners>
                                                </ext:DropDownField>  
                                <ext:Button ID="Button1" runat="server" Text="ReadOnly False" MarginSpec="5" >
                                    <Listeners>
                                            <Click Handler="enableTaglie(false);" />
                                    </Listeners>
                                </ext:Button>             
                            <ext:Button ID="Button2" runat="server" Text="ReadOnly True" MarginSpec="5" >
                                    <Listeners>
                                            <Click Handler="enableTaglie(true);" />
                                    </Listeners>
                                </ext:Button>     
                            </Items>
                        </ext:FormPanel>
                    </Items>
                </ext:Viewport>
            </form>
            <script type="text/javascript">
    
                function enableTaglie(value) {
    
                    DropDownField1.setReadOnly(value);
                   
                }
            </script>
        </body>
    </html>
    For me i'ts not a problem...for now i leave the triggerIcon.

    Thanks
    Aurelio
    Last edited by Daniil; Aug 31, 2012 at 8:29 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Thanks for the report.

    I think it is a CSS issue. This is reproducible with the sample below.

    We will investigate.

    Example
    <%@ Page Language="C#"  %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
     
    <!DOCTYPE html>
     
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
    
        <ext:DropDownField 
            runat="server"
            TriggerIcon="SimpleArrowDown" 
            HideTrigger="true" />
    </body>
    </html>
  3. #3
    OK Daniil...nn problem

    Thanks
    Aurelio
  4. #4
    This has been fixed in SVN (the 2.1 branch).

    Thanks again for the report.
  5. #5
    Hi..Daniil

    Work Ok..

    Thanks
    Aurelio
  6. #6
    Hi.Daniil

    After the last update of the SVN ..

    ExtNet Version
    4316
    v4.0.30319
    V 2.1.0.22152

    the problem reappears

    <%@ 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 id="Head1" runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
     
        <ext:DropDownField ID="DropDownField1"
            runat="server"
            TriggerIcon="SimpleArrowDown"
             ReadOnly="true" />
    </body>
    </html>
    The border right of the field is not redraw

    Thanks
    Aurelio
  7. #7
    Thanks for the report. We are investigating.
  8. #8
    Fixed in SVN, please update.
  9. #9
    Hi.Daniil

    Ok..great work

    Thanks
    Aurelio

Similar Threads

  1. [CLOSED] DropDownField is not aligned 100% in Readonly mode
    By thchuong in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 25, 2012, 10:55 AM
  2. DropDownField / ColorPalette problems
    By wexman in forum 1.x Help
    Replies: 4
    Last Post: May 25, 2011, 10:10 AM
  3. [CLOSED] DropDownField on FF
    By thchuong in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 21, 2011, 8:18 AM
  4. Grideditor and dropdownfield
    By haiduong87 in forum 1.x Help
    Replies: 2
    Last Post: Oct 12, 2010, 10:04 AM
  5. [CLOSED] [1.0] TriggerField TriggerIcon property not working?
    By smmille1 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 25, 2010, 10:00 PM

Posting Permissions