Button inside ButtonGroup

  1. #1

    Button inside ButtonGroup

    Hi,

    We have some Buttons inside a ButtomGroup and we need to enable or disable them at client side. But when we look which kind element they are, we find "Ext.dom.Element" instead of Button type as expected. So in this way, we can't call button methods.

    How must we enable/disable this kind of element?

    Thanks.
  2. #2
    Hi,

    Does the Button have an .ID? if yes, then you can just use the client-side id (.ClientID) of the Button.

    Example

    App.Button1.hide();
    Hope this helps
    Geoffrey McGill
    Founder
  3. #3
    Hi,

    As we could see, if we use directly:

    Button1
    We get the dom element itself. In the same way, if we use:

    Ext.get(Button1)
    Then, we get an "Ext.dom.Element", with a dom property.

    But if we use App as you suggested, then we get an "Ext.button.Button" as expected. So we can do what we really want:

    App.Button1.setDisabled(false);

    Thanks.

Similar Threads

  1. Replies: 8
    Last Post: Sep 28, 2012, 2:42 PM
  2. [CLOSED] Button inside compositefield
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 04, 2011, 8:19 PM
  3. Replies: 2
    Last Post: Mar 03, 2011, 1:44 PM
  4. [CLOSED] ButtonGroup Bug
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 13, 2009, 2:42 AM
  5. How to put a button inside of a Form's body
    By marcossoft in forum 1.x Help
    Replies: 3
    Last Post: Feb 04, 2009, 7:34 AM

Posting Permissions