Jump to content

Recommended Posts

Posted

Hello

Is there any way to specify the positions of the radiobuttons drawn in a radiogroup?

For example if columns=2, I want to draw the left radiobutton at 10 pixels and the right radiobutton at the radiogroup's width -10...

Thanks

Doug

Posted

I am trying to achieve  a more visually meaning layout.

This is currently how I display a RadioGroup using Y, N for Yes No.

 snap113.bmp

However I wish to display the label between the Y on the left and N on the right, but expanding the radiogroup doesn't look perfect for "High Blood Pressure", as I would like to have the N in that location but the border of the radiogroup close to it.

I could do this with a slider, but that doesn't exist for Desktop Applications.

 

snap114.bmp

Posted
16 minutes ago, dkeene said:

How can I achieve this?

One possible solution, try:

function afterlayout(sender, layout, eOpts)
{
    sEl = sender.getEl().select('td:nth-child(2)').elements[0]; 
    if (sEl) {
        sEl.style.direction = 'rtl'
    }
}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...