Mar 02, 2016, 12:09 PM
[CLOSED] RowExpander FormPanel Issues
Dears,
I defined a
1. For each row in my editable
2. Based on the selection "Account No." list will be displayed in second
Note that I defined the
My questions are:
1. As per my
2. How to sync the values of
3. I defined a listeners in
Regards,
Alaswad
I defined a
RowExpander
FormPanel
in my GridPanel
as follows: <ext:RowExpander runat="server" SingleExpand="false">
<Component>
<ext:FormPanel
runat="server"
Width="150"
Border="false"
Cls="white-footer">
<Items>
<ext:ComboBox
ClientIDMode="Static"
ID="ddlAccountType"
Name="ACCOUNT_TYPE"
QueryMode="Local"
Flex="1"
TriggerAction="All"
Editable="false"
AllowBlank="false"
runat="server"
LabelAlign="Left"
FieldLabel="Account Type">
<SelectedItems>
<ext:ListItem Text="GL" Value="GL"></ext:ListItem>
</SelectedItems>
<Items>
<ext:ListItem Text="GL" Value="GL"></ext:ListItem>
<ext:ListItem Text="Customer" Value="Customer"></ext:ListItem>
<ext:ListItem Text="Supplier" Value="Supplier"></ext:ListItem>
</Items>
<Listeners>
<Select Handler="loadAccountNum" />
</Listeners>
</ext:ComboBox>
<ext:ComboBox ID="ddlAccountNo" ClientIDMode="Static" Flex="1" ForceSelection="true" ValueField="SL_ACCOUNT" DisplayField="SL_ACCOUNT" runat="server" LabelAlign="Left" FieldLabel="Account No.">
<Store>
<ext:Store ID="ddlAccountNoStore" runat="server">
<Model>
<ext:Model ID="ddlAccountNoModel" runat="server" >
<Fields>
<ext:ModelField Name="SL_ACCOUNT_DESC" Type="String" />
<ext:ModelField Name="SL_ACCOUNT" Type="String" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
</ext:ComboBox>
<ext:TextField
runat="server"
ClientIDMode="Static"
Name="SUBLEDGER_ACCOUNT"
ID="txtSubledgerAccount"
Flex="1"
FieldLabel="Subledger Acc"
/>
<ext:TextField
runat="server"
ClientIDMode="Static"
Flex="1"
Name="CONTROL_ACCOUNT"
ID="txtControlAccount"
FieldLabel="Control Acc"
/>
<ext:TextField
runat="server"
ClientIDMode="Static"
ID="txtAccountDescription"
FieldLabel="Acc Desc."
/>
</Items>
</ext:FormPanel>
</Component>
</ext:RowExpander>
What I want to achieve is the following: 1. For each row in my editable
GridPanel
, the user will choose "Account Type" from ComboBox
.2. Based on the selection "Account No." list will be displayed in second
ComboBox
of the same form.Note that I defined the
ID
property for each ComboBox
as ClientIDMode="Static"
.My questions are:
1. As per my
GridPanel
has many rows, how I can deal with each FormPanel
component separately. 2. How to sync the values of
FormPanel
to the GridPanel
store (Note that fields are mapped with Name=
property).3. I defined a listeners in
ComboBox
as follows:<Listeners>
<Select Handler="loadAccountNum" />
</Listeners>
to invoke this: function loadAccountNum() {
var AccountType = App.ddlAccountType.getValue();
alert(AccountType);
}
But this listener is not FIRED, why? What am doing wrong?Regards,
Alaswad
Last edited by fabricio.murta; Mar 08, 2016 at 1:28 AM.