AutoHeight,LabelSeparator ,LabelAlign ,LabelPad not work in V2.3

  1. #1

    AutoHeight,LabelSeparator ,LabelAlign ,LabelPad not work in V2.3

    I have server side code to create Panel and FormPanel in V1.0, I want to upgrade to V2.3. AutoHeight,LabelSeparator ,LabelAlign ,LabelPad do not work. I refence the Breaking_changes.txt. AutoHeight is remove need to use ShrinkWrap instead. I put ShrinkWrap=2, but cannot recompile. I want to know how to use ShrinkWrap , LabelSeparator ,LabelAlign ,LabelPad in V2.3.

    following is the my old code:

    Panel panel = new Ext.Net.Panel()
                {
                    ID = "frmm" + docType.DocTypeID.ToString(),
                    Header = false,
                    Padding = 1,
                    Border = false,
                    AutoDoLayout = true, 
                    AutoHeight = true
                };
    
                var fp = new FormPanel()
                {
                    ID = "ff" + docType.DocTypeID.ToString(),
                    Header = false,
                    Frame = true,
                    AutoDoLayout = true,                
                    AutoHeight = true,
                    AnchorHorizontal = "96%",
    
                    LabelSeparator = ":",
                    LabelAlign = LabelAlign.Left,
                    LabelPad = 1,
                    Layout = "Form"
                    
                };
    Last edited by Daniil; Nov 06, 2013 at 4:00 PM. Reason: Please use [CODE] tags
  2. #2

    use ManageHeight to replace AutoHeight works

    use ManageHeight=true to replace AutoHeight=true

    Quote Originally Posted by Holly View Post
    I have server side code to create Panel and FormPanel in V1.0, I want to upgrade to V2.3. AutoHeight,LabelSeparator ,LabelAlign ,LabelPad do not work. I refence the Breaking_changes.txt. AutoHeight is remove need to use ShrinkWrap instead. I put ShrinkWrap=2, but cannot recompile. I want to know how to use ShrinkWrap , LabelSeparator ,LabelAlign ,LabelPad in V2.3.

    following is the my old code:

    Panel panel = new Ext.Net.Panel()
                {
                    ID = "frmm" + docType.DocTypeID.ToString(),
                    Header = false,
                    Padding = 1,
                    Border = false,
                    AutoDoLayout = true, 
                    AutoHeight = true
                };
    
                var fp = new FormPanel()
                {
                    ID = "ff" + docType.DocTypeID.ToString(),
                    Header = false,
                    Frame = true,
                    AutoDoLayout = true,                
                    AutoHeight = true,
                    AnchorHorizontal = "96%",
    
                    LabelSeparator = ":",
                    LabelAlign = LabelAlign.Left,
                    LabelPad = 1,
                    Layout = "Form"
                    
                };

Similar Threads

  1. Replies: 9
    Last Post: Sep 05, 2012, 3:08 PM
  2. [CLOSED] Overiding the labelseparator
    By SymSure in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 25, 2012, 6:28 PM
  3. Replies: 1
    Last Post: Jan 13, 2011, 11:23 AM
  4. [CLOSED] AutoHeight="true" does not work for a panel that load a page
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Feb 25, 2010, 5:13 PM
  5. [CLOSED] TextArea LabelAlign doesn't work
    By sdevanney in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 29, 2010, 12:06 PM

Posting Permissions