[CLOSED] gridpanel toolbar button's style stays disabled

  1. #1

    [CLOSED] gridpanel toolbar button's style stays disabled

    I have a gridpanel with a toolbar with a button.
    I then disable the grid panel in js:
    App.pnlMain.setDisabled(true);


    and afterwards I enable the grid panel in js:
    App.pnlMain.setDisabled(false);
    the grid is enabled but the button still looks disabled(even though I can click it):
    Attached Thumbnails Click image for larger version. 

Name:	enabled.JPG 
Views:	4 
Size:	12.6 KB 
ID:	23491   Click image for larger version. 

Name:	disabled.JPG 
Views:	3 
Size:	10.0 KB 
ID:	23501  
    Last edited by Daniil; Apr 14, 2015 at 11:11 AM. Reason: [CLOSED]
  2. #2
    Hi ampathdev

    This is interesting. I think this is a bug.

    It has to do with the button's inner CSS. After the grid is enabled again, the button's inner element still has the "x-mask" classes.

    <div role="presentation" class="x-mask x-border-box" id="ext-element-12">
            <div role="presentation" class="x-mask-msg" id="ext-element-13" style="display: none;">
                <div role="presentation" class="x-mask-msg-inner">
                    <div role="presentation" class="x-mask-msg-text"></div>
                </div>
            </div>
        </div>
    The full generated HTML for the button:

    <a class="x-btn x-unselectable x-box-item x-toolbar-item x-btn-default-toolbar-small x-masked-relative x-masked" style="width: 50px; right: auto; left: 0px; top: 0px; margin: 0px;" hidefocus="on" unselectable="on" id="button" componentid="button" tabindex="-1" target="_blank">
            <span id="button-btnWrap" data-ref="btnWrap" role="presentation" unselectable="on" style="table-layout: fixed;" class="x-btn-wrap x-btn-wrap-default-toolbar-small ">
                <span id="button-btnEl" data-ref="btnEl" role="presentation" unselectable="on" style="" class="x-btn-button x-btn-button-default-toolbar-small x-btn-text    x-btn-button-center ">
                    <span id="button-btnIconEl" data-ref="btnIconEl" role="presentation" unselectable="on" class="x-btn-icon-el x-btn-icon-el-default-toolbar-small  " style=""></span>
                    <span id="button-btnInnerEl" data-ref="btnInnerEl" unselectable="on" class="x-btn-inner x-btn-inner-default-toolbar-small">button
                    </span>
                </span>
            </span>
            <div role="presentation" class="x-mask x-border-box" id="ext-element-8">
                <div role="presentation" class="x-mask-msg" id="ext-element-9" style="display: none;">
                    <div role="presentation" class="x-mask-msg-inner">
                        <div role="presentation" class="x-mask-msg-text">
                        </div>
                    </div>
                </div>
            </div>
        </a>
    For now, you can resolve it by manually unmasking the button after you enable the grid.

    App.pnlMain.setDisabled(false);
    App.button.unmask();
    Last edited by EnZo; Apr 08, 2015 at 8:53 AM.
  3. #3
    Hello everybody,

    That appears to be a known issue.
    https://github.com/extnet/Ext.NET/issues/776

    There are possible solutions:
    http://forums.ext.net/showthread.php...l=1#post267161
    https://www.sencha.com/forum/showthr...=1#post1085555

    P.S. @Enzo, please let us know if you are interested in:
    http://forums.ext.net/showthread.php?48911
  4. #4
    I am very much so, Daniil!
  5. #5
    I don't see any emails from you in our inbox;) Please clarify have you sent anything?
  6. #6
    Yes I have! That's weird. Maybe it went to spam?
  7. #7
    Thank you! We'll check.
  8. #8
    Thank you, Daniil!
  9. #9
    The email has been found, and forwarded to Daniil. He will be contacting you soon.
    Geoffrey McGill
    Founder
  10. #10
    The issue has been fixed in SVN trunk. It will go to the upcoming Ext.NET 3.2.0 release.

Similar Threads

  1. [OPEN] [#335] Cell stays selected after clicking button
    By stratadev in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 02, 2013, 5:49 AM
  2. Style disabled
    By Juan Carlos in forum 2.x Help
    Replies: 1
    Last Post: Dec 14, 2012, 1:40 AM
  3. [CLOSED] Disabled Style applied incorrectly
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 11
    Last Post: Sep 21, 2012, 10:54 AM
  4. [CLOSED] [1.0] - Toolbar Button looks enabled when Disabled = true
    By drkoh in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 01, 2010, 5:36 PM
  5. Replies: 0
    Last Post: Apr 09, 2009, 5:12 PM

Posting Permissions