Custom triggers with combo

  1. #1

    Custom triggers with combo

    Any chance of adding cutsom triggers to ComboBox like TriggerFields has?

    Regards,
    Jure
  2. #2

    RE: Custom triggers with combo

    Hi Jure,

    It is possible to add multiple triggers to the combo but it is required big refactoring of combo js class. It is a lot of work
    But we can emulate it.

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" 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="Head2" runat="server">
        <title></title>
        <style type="text/css">
           .without-edit
           {
                 display:none;
           }
        </style>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Debug" />
            
            <div style="float:left;">
                <ext:ComboBox runat="server" >
                    <Items>
                        <ext:ListItem Text="1" />
                        <ext:ListItem Text="2" />
                        <ext:ListItem Text="3" />
                    </Items>
                </ext:ComboBox>
            
    
            
            <div style="float:left;">
                <ext:TriggerField runat="server" Cls="without-edit">
                    <Triggers>
                        <ext:FieldTrigger Icon="Combo" />
                        <ext:FieldTrigger Icon="Date" />
                        <ext:FieldTrigger Icon="Ellipsis" />
                        <ext:FieldTrigger Icon="Search" />
                    </Triggers>
                </ext:TriggerField>
            
    
            
            <div class="x-clear">
    
        </form>
    </body>
    </html>
    Is it appropriate solution for you?

  3. #3

    RE: Custom triggers with combo

    Thanks for this solution ... it will do for the time being. Anyway it would be neat to have "Triggers" option in combo. It's as you said a lot of work, especialy when using this soultion with complicated form (lots of fields, tabs, triggers and form being resizable).

    Regards,
    Jure

Similar Threads

  1. Replies: 1
    Last Post: Jan 18, 2012, 4:27 PM
  2. [CLOSED] Possible to Extending Custom Search Combo Box
    By rbarr in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 01, 2011, 1:39 PM
  3. Replies: 4
    Last Post: Dec 02, 2010, 1:44 PM
  4. combining custom search combo in grid
    By kumarxlnt in forum 1.x Help
    Replies: 0
    Last Post: Sep 24, 2009, 7:37 AM
  5. Easy way to make custom combo box
    By glenh in forum 1.x Help
    Replies: 1
    Last Post: Aug 20, 2009, 6:14 AM

Posting Permissions