1. #1
    Ext User
    Join Date
    Nov 2007
    Posts
    54
    Vote Rating
    0
    wisecounselor is on a distinguished road

      0  

    Default show radio group on one row

    show radio group on one row


    I have a FormPanel with a single field set, standard right aligned labels, mostly text boxes, but I need one small radio group, and I have it added, but I can't get it on a single row, it puts each radio button on a row. I realize this is standard op, so I know I need to pass in an html template snippet or something to make them line up on one row, can someone point in the right direction?

    Brian

  2. #2
    Ext User parveenbeniwal's Avatar
    Join Date
    Jul 2007
    Posts
    23
    Vote Rating
    0
    parveenbeniwal is on a distinguished road

      0  

    Default


    'table' layout is the option for that. Define layout for the fieldset and put the radio buttons in a FieldSet.

    items: [new Ext.form.FieldSet({
    title: 'Gender',
    layout: 'table',
    layoutConfig:{
    colspan: 2
    },
    height: 60,
    items: [new Ext.form.Radio({
    boxLabel: 'Male',
    checked: 'true',
    id: 'rad1',
    value: 'Male',
    width: 100,
    name: 'radioGroup'
    }), new Ext.form.Radio({
    boxLabel: 'Female',
    id: 'rad2',
    value: 'Female',
    width: 100,
    name: 'radioGroup'
    })]
    })]

  3. #3
    Sencha User catacaustic's Avatar
    Join Date
    Jul 2007
    Location
    "A Land Down Under"
    Posts
    618
    Vote Rating
    1
    catacaustic is on a distinguished road

      0  

    Default


    Table works. You can also define a column layout that contains the radio buttons as well. There's examples of columns in the form examples in the docs.
    'Once again, fortune vomits on my eiderdown'
    - Edmund Blackadder

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi