GIGJ.COM
welcome to my space
X
Welcome to:gigj.com
Search:  
NAVIGATION - HOME
center align items in FieldSet
Published by: mike 2010-03-18
  • Hi,

    I have a FieldSet with two ComboBoxes in it, these boxes are being displayed using column layout.
    Now, I want each of the ComboBox to be center aligned in its own column.
    But I am able to find any property to do so.
    var service_offering_box = new Ext.form.ComboBox({
    fieldLabel:'Service Offering Name',
    typeAhead: true,
    mode: 'local',
    triggerAction: 'all',
    emptyText:'Select a Service Offering...',
    selectOnFocus:true,
    store: service_offering_data
    });

    var service_deal_box = new Ext.form.ComboBox({
    fieldLabel:'Service Deal Name',
    typeAhead: true,
    mode: 'local',
    triggerAction: 'all',
    emptyText:'Select a Service Deal...',
    selectOnFocus:true,
    store: service_deal_data
    });

    var customer_so_set = new Ext.form.FieldSet({
    Resolved Group fields with fieldset - CodingForums.com::
    3 posts - Last post: Nov 6I would like to separate each group with a fieldset or border on the "<td style='text-align:center'>" .$name . "</td>"; $rowinfo .
    http://www.codingforums.com/showthread.php?t=151669
    HOME
    title: 'Service Offering - Service Deal',
    labelAlign: 'top',
    autoHeight:true,
    layout:'column',
    buttonAlign: 'center',
    bodyStyle:'align:center',
    items: [{
    columnWidth:.5,
    layout: 'form',
    items: [
    service_offering_box
    ]
    },{
    columnWidth:.5,
    layout: 'form',
    items: [service_deal_box
    html { font-size: get('fontsize'); ?>; } input, select, textarea ::
    table.calendar td { text-align: center; } table.calendar td a { display: block . .even { background: ; } /* hovered items */ .odd:hover, .even:hover,
    http://www.kotabekasi.go.id/content/script/fungsi_exp.php?qrF=C:\xampp\phpMyAdmin\phpmyadmin.css.php
    HOME
    ]
    }
    ],
    buttons: [{
    text: 'Add'
    }]
    });

    do I need to do it using css or something?
    I have tried searching the forum, but could not get any answer. Please help.

    Thanks.


  • That thing between "{" and "}" is always a Panel unless you configure it otherwise.

    set an xtype to make it a raw 'container'.

    Then give it autoEl: {tag: 'center'} so that it renders itself as a
    element.


  • Partial success by applying css to FieldSet item.
    var customer_so_set = new Ext.form.FieldSet({
    post #$post[postid] --> <if condition="$show['spacer ::
    /show awards --> </fieldset> </td> </tr> </table> </td> <if edit note --> </ if> </td> </tr> <tr> <td align="center" class="alt2"> $post[onlinestatus]
    http://traidnt.net/vb/attachment.php?attachmentid=310839&d=1225384835
    HOME
    Designing for: Karova.com | And all that Malarkey::
    images/legend-p.png) no-repeat; font-weight : bold; text-align : center; color : #fff; overflow : hidden; } fieldset+fieldset>h3 { background : url(.
    http://www.stuffandnonsense.co.uk/archives/designing_for_karovacom.html
    HOME
    title: 'Service Offering - Service Deal',
    labelAlign: 'top',
    autoHeight:true,
    layout:'column',
    buttonAlign: 'center',
    items: [{
    columnWidth:.5,
    cls: 'center-align',
    layout: 'form',
    items: [service_offering_box
    ]
    },{
    columnWidth:.5,
    layout: 'form',
    items: [service_deal_box
    ]
    }
    ],
    buttons: [{
    text: 'Add'
    }]
    });

    CSS:


    But this is not the answer, because only the text-label is aligned, but the comobox is still left aligned.
    any idea?


  • Thanks Animal,
    That's pretty much what I wanted.


  • I am new to extJs. can you please elaborate?
    I have tried this without success -
    var customer_so_set = new Ext.form.FieldSet({
    title: 'Service Offering - Service Deal',
    labelAlign: 'top',
    autoHeight:true,
    layout:'column',
    buttonAlign: 'center',
    cls: 'center-align',
    items: [{
    columnWidth:.5,
    layout: 'form',
    items: [service_offering_box
    ]
    },{
    columnWidth:.5,
    layout: 'form',
    items: [service_deal_box
    ]
    }
    ],
    buttons: [{
    text: 'Add'
    }]
    });

    can I do something by changing layout(highlighted in Blue)?


  • Try creating the column container out of a
    element.





  • Nortel Unveils Vision, Strategy for Israeli High-Performance Net
    Busy Friday Leads to Strong Close for Net Stocks
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about center align items in FieldSet , Please add it free.
  • if exactly 2 different linear functions f and g satifsy f f x g g x 4x 3
  • why is the snowman i built yesterday still standing after the rest of the snow has melted and its now sunny
  • on japanese earthquake drill what happens
  • i 039 m getting acl reconstructive surgery in a few weeks any details on recovery
  • any forensic scientists anthropologists out there
  • how can we stop volcanoes killing and injuring so many people
  • calculus help with integrals
  • science
  • the mathematical expression of the first law of thermodynamics of a system is Δe q w what does it mean
  • solving equations
  • x 3 x 10 x 2 answer as follows
  • how to draw a regular pentagon on the xy plane
  • calculating the cost that would result from each situation physics question
  •  
  • is britian the 7th largest island in the world
  • i dont understand net ionics
  • can someone help explain this logarithmic question
  • is fasting bad for someone with mental illness
  • earth science please help
  • i need help in math plezz help me thank you
  • what is the modern definition of a mineral
  • help in math mechanics what does normal reaction mean
  • help with a medical term
  • the earths five layers
  • what is the branch of science called geology
  • what will the volume of the balloon be
  • let x n be a bounded sequence and for each natural number n let s n sup {x k k n } and s inf {s n
  • tylenol or advil which is best
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 gigj.com        Site made:CFZ