PDA

View Full Version : [CLOSED] Combobox loading message issue.



arjunrvasisht
Dec 17, 2014, 8:57 AM
The loading message of the combobox comes outside the combo area. Please have a look at the attached image.http://forums.ext.net/attachment.php?attachmentid=17251&stc=1

Daniil
Dec 17, 2014, 11:56 AM
Hi @arjunrvasisht,

Please provide a test case to reproduce.

arjunrvasisht
Dec 17, 2014, 1:26 PM
Hi Daniil, below is the code. As per the image i have attached previously there are 4 combobox. The combo withthe id "CmbProgram" is the one where the loading mask issue is. You can see I have defined the loading message in the list config. Even though it was coming outside. The loading message which is there in the image is of the panel.


<ext:Container ID="CntrYMP" runat="server" Layout="HBoxLayout" Width="1400px">
<Defaults>
<ext:Parameter Name="margins" Value="3 3 3 3 3 " Mode="Value" />
</Defaults>
<Content>
<ext:ComboBox ID="CmbYear" runat="server" FieldLabel="Year<span class='foreColorRed'>*</span>"
LabelAlign="Top" Selectable="true" DisplayField="Year" ValueField="YearId" TypeAhead="true"
Mode="Local" ForceSelection="true" SelectOnFocus="false" Width="100">
<Store>
<ext:Store ID="StoreYear" runat="server">
<Model>
<ext:Model ID="Model1" runat="server">
<Fields>
<ext:ModelField Name="YearId" Type="Int" />
<ext:ModelField Name="Year" Type="String" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<Listeners>
<SpecialKey Fn="PreventEscape" PreventDefault="true" />
<AfterRender Handler="fixComboArrow('#{CmbYear}')" />
</Listeners>
<DirectEvents>
<Select OnEvent="ddlTier3_SelectedIndexChanged">
<EventMask Msg="<%$ Resources:WebResource,GeneralMsg_Loading%>" Target="CustomTarget"
CustomTarget="#{fsErlData}" ShowMask="true" />
</Select>
</DirectEvents>
</ext:ComboBox>
<ext:ComboBox ID="CmbMonth" runat="server" FieldLabel="Month<span class='foreColorRed'>*</span>"
LabelAlign="Top" Selectable="true" DisplayField="Month" ValueField="MonthId" TypeAhead="true"
Mode="Local" ForceSelection="true" SelectOnFocus="false" Width="100">
<Store>
<ext:Store ID="StoreMonth" runat="server">
<Model>
<ext:Model ID="Model2" runat="server">
<Fields>
<ext:ModelField Name="MonthId" Type="Int" />
<ext:ModelField Name="Month" Type="String" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<Listeners>
<SpecialKey Fn="PreventEscape" PreventDefault="true" />
<AfterRender Handler="fixComboArrow('#{CmbMonth}')" />
</Listeners>
<DirectEvents>
<Select OnEvent="ddlTier3_SelectedIndexChanged">
<EventMask Msg="<%$ Resources:WebResource,GeneralMsg_Loading%>" Target="CustomTarget"
CustomTarget="#{fsErlData}" ShowMask="true" />
</Select>
</DirectEvents>
</ext:ComboBox>
<ext:ComboBox ID="CmbProgram" Resizable="false" Width="350" runat="server" FieldLabel="Search Program<span class='foreColorRed'>*</span>"
LabelAlign="Top" DisplayField="Programname" ValueField="ProgramId"
EmptyText="<%$ Resources:WebResource,WaterMark_Search%>"
MinChars="2" Note="<%$ Resources:WebResource,GenericMsg_SearchLenth_Proje ct%>"
NoteCls="myNoteCls" Selectable="true">
<Store>
<ext:Store ID="StorePrograms" runat="server" OnReadData="StrPrograms_Refresh">
<Proxy>
<ext:PageProxy />
</Proxy>
<Model>
<ext:Model ID="Model3" runat="server">
<Fields>
<ext:ModelField Name="ProgramId" Type="String" />
<ext:ModelField Name="Programname" Type="String" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<Listeners>
<SpecialKey Fn="PreventEscape" PreventDefault="true" />
<BeforeSelect Handler="#{ddlTier3}.clearValue();#{BtnErlSave}.disable();# {BtnReset}.disable();#{pntErlData}.hide();#{LnkBtn DocUpload}.hide();" />
<AfterRender Handler="fixComboArrow('#{CmbProgram}');" />
</Listeners>
<DirectEvents>
<Select OnEvent="CmbProgram_SelectedIndexChanged">
</Select>
</DirectEvents>
<%-- <ListConfig ID="ListConfig1" runat="server" LoadingText="Searching..."></ListConfig>--%>
<ToolTips>
<ext:ToolTip ID="TTprgtp" runat="server">
<Listeners>
<Show Handler="showComboToolTip(#{TTprgtp},#{CmbProgram})" />
</Listeners>
</ext:ToolTip>
</ToolTips>
</ext:ComboBox>
<ext:ComboBox TabIndex="3" ID="ddlTier3" FieldLabel="Tier3<span class='foreColorRed'>*</span>"
LabelAlign="Top" runat="server" DisplayField="Name" EmptyText="<%$ Resources:WebResource,WaterMark_Select%>"
ValueField="EnggTier3Id" Width="322" Selectable="true" Resizable="false" MaxLength="100"
Mode="Local">
<Store>
<ext:Store ID="StoreTier3" runat="server">
<Model>
<ext:Model ID="Model4" IDProperty="Tier3Id" runat="server">
<Fields>
<ext:ModelField Name="EnggTier3Id" Type="Int" />
<ext:ModelField Name="Name" Type="String" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<Listeners>
<SpecialKey Fn="PreventEscape" PreventDefault="true" />
<Select Handler="#{BtnErlSave}.enable();#{BtnReset}.enable();#{pntE rlData}.show()" />
</Listeners>
<DirectEvents>
<Select OnEvent="ddlTier3_SelectedIndexChanged">
<EventMask Msg="<%$ Resources:WebResource,GeneralMsg_Loading%>" Target="CustomTarget"
CustomTarget="#{fsErlData}" ShowMask="true" />
</Select>
</DirectEvents>
</ext:ComboBox>
<ext:LinkButton ID="LnkBtnDocUpload" runat="server" Text="Document Upload Form" Font-Names="Arial"
Font-Size="8.5pt" Font-Bold="false" Hidden="true" PaddingSpec="0 100">
<DirectEvents>
<Click OnEvent="LnkBtnDocUpload_Click">
</Click>
</DirectEvents>
</ext:LinkButton>
</Content>
</ext:Container>

Daniil
Dec 18, 2014, 7:37 AM
Sorry, I cannot run. Please provide a runnable test case.