[CLOSED] Position of triggers added to DropDown

  1. #1

    [CLOSED] Position of triggers added to DropDown

    On version 2.x, the triggers added to DropDown were placed before "open" trigger



    but on version 3.x, the triggers added to DropDown were placed after "open" trigger



    Any ideas to overcome this issue?

    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
    </head>
    <body>
        <ext:ResourceManager runat="server" SeparateUIStyles="false" Theme="Gray" />
        <ext:DropDownField
            ID="_ddd"
            Editable="false"
            Width="800"
            runat="server" TriggerIndexOnEnter="1" >
            <Triggers>
                <ext:FieldTrigger Icon="Clear" />
            </Triggers>
            <Component>
                <ext:Panel Title="Inner Panel" runat="server" Height="600">
                    <Loader Url="http://www.ext.net" Mode="Frame" runat="server" />
                </ext:Panel>
            </Component>
        </ext:DropDownField>
    </body>
    </html>
    Attached Thumbnails Click image for larger version. 

Name:	cb001.png 
Views:	36 
Size:	563 Bytes 
ID:	16701   Click image for larger version. 

Name:	cb002.png 
Views:	37 
Size:	571 Bytes 
ID:	16711  
    Last edited by Daniil; Nov 30, 2014 at 6:19 PM. Reason: [CLOSED]
  2. #2
    It's possible to overcome the issue presented above by setting FieldTrigger's Weight property to -1.

    Description of FieldTrigger's Weight property: An optional weighting to change the ordering of the items. The default weightis 0. Triggers are sorted by weight in ascending order before being

    <ext:FieldTrigger Icon="Clear" Weight="-1" />


    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
    </head>
    <body>
        <ext:ResourceManager runat="server" SeparateUIStyles="false" Theme="Gray" />
    
        <ext:DropDownField Margin="10"
            ID="_ddd"
            Editable="false"
            Width="800"
            runat="server">
            <Triggers>
                <ext:FieldTrigger Icon="Clear" Weight="-1" />
            </Triggers>
            <Component>
                <ext:Panel Title="Inner Panel" runat="server" Height="600">
                    <Loader Url="http://www.ext.net" Mode="Frame" runat="server" />
                </ext:Panel>
            </Component>
        </ext:DropDownField>
    </body>
    </html>
  3. #3
    I think that it would be interesting to add this information to Breaking Changes document.
    Last edited by Daniil; Nov 30, 2014 at 8:57 AM.
  4. #4
    Hi Raphael,

    Thank you for pointing out the problem. Rather than adding it into the breaking changes document we considered it as a defect and fixed in the revision #6187 (v3 branch).

    By the way, regarding the SeparateUIStyles="false" setting. This setting has been removed. I am adding this breaking change item:

    34. [EXTNET] The ResourceManager's SeparateUIStyles setting has been removed.
    If you previously used SeparateUIStyles="false", it is now the behavior by default, i.e.
    all the UI styles are loaded at once if any UI is used.
    We don't consider SeparateUIStyles="true" (default in Ext.NET v2) is required anymore.
    If you disagree, please feel free to initiate a discussion on the forums.
  5. #5
    Thank you Daniil. Please mark this thread as closed.

Similar Threads

  1. Replies: 12
    Last Post: Jun 04, 2012, 11:18 AM
  2. Replies: 6
    Last Post: Jan 28, 2012, 1:14 AM
  3. [CLOSED] Dropdown Field List Position
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Apr 14, 2011, 7:04 PM
  4. Replies: 6
    Last Post: Feb 08, 2011, 6:17 PM
  5. [CLOSED] Define selected Position of dropdown-list in TimeField
    By macap in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 29, 2010, 5:18 AM

Posting Permissions