[CLOSED] FormPanel.Defaults not applied to all Fields

  1. #1

    [CLOSED] FormPanel.Defaults not applied to all Fields



    Can you tell me why the defaults are not getting applied to all the fields.


    protected void Page_Init(object sender, EventArgs e)
    {
      Ext.Net.FormLayout formLayout = new Ext.Net.FormLayout();
      Ext.Net.FormPanel  formPanel  = new Ext.Net.FormPanel{Items = {formLayout} };
      
      formPanel.Defaults.Add(new Ext.Net.Parameter("anchor",      "-4"));
      formPanel.Defaults.Add(new Ext.Net.Parameter("boxMaxWidth", "500"));
      
      formLayout.Items.Add(new Ext.Net.TextField{});
      formLayout.Items.Add(new Ext.Net.TriggerField{});
      formLayout.Items.Add(new Ext.Net.SelectBox{});
    
    
      Form.Controls.Add(new Ext.Net.ResourceManager());
      Form.Controls.Add(new Ext.Net.Viewport{
        Layout = "fit",
        Items = {formPanel}
      });
    }
  2. #2

    RE: [CLOSED] FormPanel.Defaults not applied to all Fields

    Hi,

    BoxMaxWidth must be number (not string, otherwise trigger fields ignore width)


    Add parameter mode
    new Ext.Net.Parameter("boxMaxWidth", "500", ParameterMode.Raw)

Similar Threads

  1. [CLOSED] Formpanel with 2 fields on the same line
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Oct 25, 2010, 9:10 PM
  2. [CLOSED] [1.0] Looping through FormPanel fields
    By danielg in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 08, 2010, 7:42 AM
  3. [CLOSED] [1.0] Remove fields from FormPanel
    By danielg in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 24, 2010, 1:06 PM
  4. [CLOSED] FormPanel and getValues does not return all form fields
    By HOWARDJ in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 07, 2009, 6:21 PM
  5. [CLOSED] formpanel defaults
    By idrissb in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 08, 2009, 12:15 PM

Posting Permissions