PDA

View Full Version : [CLOSED]readOnly radio buttons not honoring readOnly



ValterBorges
8 Jun 2010, 8:26 AM
Does anyone know why radio buttons are not honoring the readOnly:true property

Ext 3.2.1
IE8

jsakalos
8 Jun 2010, 10:29 AM
If it doesn't honor readOnly, it's a bug. Moving the thread to bugs.

evant
8 Jun 2010, 10:45 AM
It's not a bug, it's just not supported by the browser. Try the following in FF, IE, Chrome:



Ext.onReady(function(){
var el = document.createElement('input');
el.name = 'foo';
el.type = 'checkbox';
el.readOnly = true;

document.body.appendChild(el);
});


http://stackoverflow.com/questions/155291/can-html-checkboxes-be-set-to-readonly

Closing off.

jsakalos
8 Jun 2010, 10:58 AM
Thanks for the Explanation Evan. OP could simulate it by adding a (semi)transparent mask over the radios if the requirement is really strict.

ValterBorges
8 Jun 2010, 12:24 PM
that's how i'm doing it with mask's right now the problem i'm running into is that when printing preview masks don't show however when it prints it shows up as a gray square.