Disable form Items

  1. #1

    Disable form Items

    Hi,
    How can i disable all fields on the form?
    I try do this like this...

    #{ParamsForm}.items.each(function(itm){itm.setDisabled(true)});
    But it disables Labels too and the result looks ugly.
    Thank you.
  2. #2
    Hi,

    You can exclude Labels.
    FormPanel1.items.each(function (item) {
        if (!(item instanceof Ext.form.Label)) {
            item.disable();
        }
    });

Similar Threads

  1. Replies: 8
    Last Post: Dec 18, 2014, 6:35 AM
  2. [CLOSED] How to selectively disable some items in combobox
    By Shanti in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Feb 07, 2013, 4:11 PM
  3. [CLOSED] Disable Selection on TreePanel on form no valid
    By rbarr in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 14, 2011, 9:35 AM
  4. [CLOSED] Disable shadowing on panel tool items
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 08, 2011, 7:38 AM
  5. Disable all Items in Toolbar
    By real_unreal in forum 1.x Help
    Replies: 1
    Last Post: Feb 05, 2010, 5:45 PM

Posting Permissions