[CLOSED] FieldTrigger issue in combobox

  1. #1

    [CLOSED] FieldTrigger issue in combobox

    Hi,

    In one of my project page, I need the scenario to reset fieldtrigger in combobox to its original position. Please have a look at screenshot. While loading the screen the combobox doesn't need to show any field trigger and while selecting the item it needs to show field trigger. As per functionality it is working, but if I want to reset the total changes from server side, the field trigger and icon for the selected item is not disappearing. The for combobox with trigger is as follows...

    
    <ext:ComboBox ID="ddlLoanFStatus0" runat="server" StoreID="StoreFinalStatus1" Flex="8"
                                                                            Editable="false" DisplayField="name" ValueField="namevalue" Mode="Local" TriggerAction="All"
                                                                            EmptyText="Select a Status...">
                                                                            <Template runat="server">
                                                                                <Html>
                                                                                    <tpl for=".">
                                                                                        <div class="x-combo-list-item icon-combo-item {iconCls}">
                                                                                            {name}
                                                                                        </div>
                                                                                    </tpl>
                                                                                </Html>
                                                                            </Template>
                                                                            <Triggers>
                                                                                <ext:FieldTrigger Icon="SimpleDisk" Qtip="Save Selected" HideTrigger="true" />
                                                                            </Triggers>
                                                                            <Listeners>
                                                                                <TriggerClick Handler="ShowFReqCondsWindow(this.getValue().toString(),'PERM_4_1',this.getRawValue().toString())" />
                                                                                <Select Handler="this.setIconCls(record.get('iconCls'));this.triggers[0].dom.removeAttribute('hidden');this.triggers[0].show();" />
                                                                            </Listeners>
                                                                        </ext:ComboBox>
    The server side code to reset to original position is ...(reset with "Re-Open Status" button event)...

    
    ddlLoanFStatus0.ClearValue()
    ddlLoanFStatus0.Triggers(0).HideTrigger = True
    Click image for larger version. 
    
    Name:	TriggerFields.PNG 
    Views:	48 
    Size:	26.4 KB 
    ID:	3066
    Last edited by Daniil; Aug 15, 2011 at 4:04 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please use the .ConcealTrigger(index) to hide a trigger.
  3. #3

    FieldTrigger issue in combobox

    Hi Daniil,

    Thank you, now the field trigger is able to hide, but still the icon related to previously selected item is not hiding.


    Quote Originally Posted by Daniil View Post
    Hi,

    Please use the .ConcealTrigger(index) to hide a trigger.
  4. #4
    To clear an icon please use:
    ComboBox1.Icon = Icon.None;

Similar Threads

  1. Combobox fieldtrigger order buttons
    By gardelsouza in forum 1.x Help
    Replies: 3
    Last Post: May 21, 2011, 4:09 PM
  2. [CLOSED] Combobox issue
    By ducnt in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 06, 2010, 2:17 PM
  3. [CLOSED] FieldTrigger custom IconCls bug?
    By geodan in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 05, 2010, 7:39 AM
  4. Replies: 5
    Last Post: Aug 02, 2010, 8:44 AM
  5. [CLOSED] [1.0] render combobox IE(6,7) issue
    By miguelon in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 20, 2010, 11:08 AM

Tags for this Thread

Posting Permissions