How to hide ext button from javascript function

  1. #1

    How to hide ext button from javascript function

    I have two buttons - 'Delete' and 'Save'. I want to hide one button using javascript. like:

    document.getElementById('MainContent_btnDelete').Visible = false;
    It's changing the property (debugged) but not reflecting in UI. can anyone help me?
    Last edited by Daniil; Nov 28, 2011 at 7:19 AM. Reason: Please use [CODE] tags
  2. #2
    Hi,

    Just
    ButtonClientId.hide();
    See also:
    http://docs.sencha.com/ext-js/3-4/#!...nt-method-hide

Similar Threads

  1. Calling JavaScript function
    By UserClarion in forum 1.x Help
    Replies: 2
    Last Post: Dec 30, 2011, 10:23 AM
  2. Replies: 8
    Last Post: Dec 23, 2011, 12:41 PM
  3. Replies: 2
    Last Post: Dec 03, 2010, 8:02 AM
  4. [CLOSED] How to use #{...} syntax within javascript function
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 21, 2010, 4:38 PM

Tags for this Thread

Posting Permissions