[CLOSED] enable button in Listeners

  1. #1

    [CLOSED] enable button in Listeners

    <ext:Button ID="btn_save" runat="server" Icon="Disk" Text="确定" Disabled="True">
                                <DirectEvents>
                                    <Click OnEvent="e_save" Before="return #{store_role}.isDirty();">
                                        <ExtraParams>
                                            <ext:Parameter Name="data" Value="#{store_role}.getChangedData()" Mode="Raw" Encode="true" />
                                        </ExtraParams>
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
    <ext:Button ID="btn_add" runat="server" Icon="Add" Text="新增">
                                <Listeners>
                                    <Click Handler="App.store_role.insert(0,{});App.btn_save.disabled=false;"></Click>
                                </Listeners>
                            </ext:Button>
    I set btn_save button disabled, when I click btn_add button ,set btn_save button enabled.
    App.btn_save.disabled=false;
    is not work, is sth. wrong?
    Last edited by Daniil; Jun 06, 2013 at 4:34 AM. Reason: [CLOSED]
  2. #2
    App.btn_save.disabled=false;
    then button can click , but button's color is gray .
    Last edited by Daniil; Jun 06, 2013 at 4:34 AM. Reason: Please use [CODE] tags
  3. #3
    Please use disable method
    App.btn_save.disable();
    Please see
    http://docs.sencha.com/extjs/4.2.1/#...method-disable
    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. [CLOSED] Enable/Disable Button
    By FVNoel in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 19, 2013, 12:02 PM
  2. Replies: 1
    Last Post: Jul 28, 2011, 4:25 PM
  3. Button Disable/Enable issue
    By paddy in forum 1.x Help
    Replies: 3
    Last Post: Jul 26, 2011, 8:28 AM
  4. Button Enable/Disable
    By Maia in forum 1.x Help
    Replies: 5
    Last Post: Jul 02, 2010, 8:03 PM
  5. Enable or disable the button
    By VietView in forum 1.x Help
    Replies: 4
    Last Post: Jan 09, 2009, 11:59 AM

Posting Permissions