Aug 10, 2011, 12:36 PM
[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...
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
Last edited by Daniil; Aug 15, 2011 at 4:04 PM.
Reason: [CLOSED]