Results 1 to 3 of 3

Thread: hideParent not effective?

  1. #1

    Question hideParent not effective?

    I have a Form with TextFields which I wish to hide, but the fieldLabel remains visible.

    Code:
    frmEnquiryEdit = new Ext.form.FormPanel({
    	id: 'frmEnquiryEdit',
    	...
    	items: [
    		{ xtype: 'datefield', id: 'edit_instruction_date', format: 'd/m/Y', fieldLabel: 'Instruction Date', name: 'instruction_date', hideParent: true },
    		...			
    	]
    	
    });
    and
    Code:
    Ext.getCmp('edit_instruction_date').hide()
    any ideas anyone?

  2. #2

    Default

    try this

    frmEnquiryEdit.getEl().up('.x-form-item').setDisplayed(false);

    it works.

  3. #3

    Default

    brilliant, thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •