Apr 03, 2011, 12:20 PM
[CLOSED] Still dont understand referencing Controls in Javascript: Select Handler and Button
Hey,
I am still not getting it with the referencing of Controls in Handlers and Javascript.
I have a ComboBox (inside a UserControl) and it has a Select Handler. I want that Select Handler to show a hidden button:
I am still not getting it with the referencing of Controls in Handlers and Javascript.
I have a ComboBox (inside a UserControl) and it has a Select Handler. I want that Select Handler to show a hidden button:
<Listeners>
<Select Handler="#{Field_Address_Icon}.setVisible(true)"/>
</Listeners>
I have tried without the # too: <Listeners>
<Select Handler="Field_Address_Icon.setVisible(true)"/>
</Listeners>
The Button I am trying to access is placed inside thte same ColumnLayout:<ext:LayoutColumn ColumnWidth="0.04">
<ext:Button ID="Field_Address_Icon" Icon="BulletTick" runat="server" StandOut="true" Visible="false"></ext:Button>
</ext:LayoutColumn>
I have also tried with different IDMode, "Explicit", "ExplicitClientID", "Ignore" to no avail. I just keep getting
Uncaught ReferenceError: Field_Address_Icon is not defined
Last edited by Daniil; Apr 04, 2011 at 9:00 AM.
Reason: [CLOSED]