FormPanel CodeBehind item adding BUG

  1. #1

    FormPanel CodeBehind item adding BUG

    
    
    
    <Body><ext:FormLayout ID="FormLayout1" runat="server"> <ext:Anchor Horizontal="95%">
    
    
    <ext:TextField ID="PriceField" DataIndex="price" runat="server" FieldLabel="Price" /></ext:Anchor>
    
    
    <ext:Anchor Horizontal="95%"><ext:TextField ID="TextField1" DataIndex="price" runat="server" FieldLabel="Price" />
    
    
    </ext:Anchor></ext:FormLayout></Body>
    Code Behind
    
    
    
    FormPanel1.Items.Add(New Coolite.Ext.Web.TextArea())
    JavaScript
    Ext.form.FormPanel( ...
    items:[{id:"PriceField",xtype:"textfield",fieldLabel:"Price",anchor:"95%",dataIndex:"price"},{i ...
    buttonAlign:"right"});{id:"ctl03",xtype:"textarea"}Coolite.Ext.setValues([[PriceField,""],
    There is a problem at this part :
    buttonAlign:"right"});{id:"ctl03",xtype:"textarea"}Coolite.Ext.setVa lues([[PriceField,""],

    Codebehind adds the textarea to middle of ExtJS config.
  2. #2

    RE: FormPanel CodeBehind item adding BUG

    Hi davutengin,

    You can add the TextArea to a new Anchor.

    Example

    this.FormLayout1.Anchors.Add(new Coolite.Ext.Web.TextArea());
    Hope this helps.

    Geoffrey McGill
    Founder
  3. #3

    RE: FormPanel CodeBehind item adding BUG

    nope :(

       Coolite.Ext.Web.FormLayout deneme=new Coolite.Ext.Web.FormLayout;
       deneme.Anchors.Add( --> Only Takes Coolite.Ext.Web.Anchors
  4. #4

    RE: FormPanel CodeBehind item adding BUG

    Hi davutengin,

    I think we might have added an override to the .Add Method after the v0.8 release to allow directly adding a Component to the Anchors Collection... which automatically creates a wrapping Anchor object around the Component.


    To work around the problem, just add the Component to an Anchor object, then add the Anchor to the Collection.


    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 11
    Last Post: Jul 27, 2012, 2:22 PM
  2. [CLOSED] multiselect add item in codebehind
    By albayrak in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 16, 2011, 10:11 AM
  3. Adding Tab using codebehind
    By gevik in forum 1.x Help
    Replies: 9
    Last Post: Oct 02, 2011, 7:43 PM
  4. Move an Item of Multiselect in codebehind
    By sfvaleriano in forum 1.x Help
    Replies: 0
    Last Post: Sep 14, 2009, 2:52 PM
  5. FormPanel CodeBehind item adding
    By davutengin in forum 1.x Help
    Replies: 0
    Last Post: Jun 15, 2009, 5:53 AM

Posting Permissions