[CLOSED] Setting FormPanel LabelWidth dynamically in codebehind

  1. #1

    [CLOSED] Setting FormPanel LabelWidth dynamically in codebehind

    I am trying to alter the Label Width of a FormPanel in codebehind. When we are changing from English to Spanish labels, we need to make the Label spacing wider. This seems to me as though it should work. Thoughts?

    FormPanel1.Defaults.Add(new Ext.Net.Parameter("LabelWidth","180",ParameterMode.Raw));
    Thanks.
    -Steve
    Last edited by Daniil; Mar 19, 2013 at 4:31 AM. Reason: [CLOSED]
  2. #2
    Hello!

    You should use:

    FormPanel1.FieldDefaults.LabelWidth = 200;

Similar Threads

  1. [CLOSED] setting Ext.Net.Icon from config file in codebehind
    By ecko in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 18, 2012, 2:56 AM
  2. Replies: 4
    Last Post: Jul 29, 2011, 7:02 AM
  3. Setting LabelWidth depending on text length
    By Ealirene in forum 1.x Help
    Replies: 5
    Last Post: Jul 19, 2010, 11:25 AM
  4. setting Label cssStyle or color in codebehind
    By madhugumma in forum 1.x Help
    Replies: 0
    Last Post: Jun 19, 2009, 4:29 AM
  5. Error when setting store.SortInfo in codebehind
    By plykkegaard in forum 1.x Help
    Replies: 0
    Last Post: May 19, 2009, 4:57 PM

Posting Permissions