:: Forum >>

How to make AW.UI.CheckBox READ-ONLY?

I need to show an AW.UI.CheckBox but must provent its value changed by users. I have tried

obj.setStyle("readonly", true);

It doesn't work. Is there any other way?

Thanks,
mrhsh
Sunday, December 14, 2008
readonly and disabled aren't CSS styles so you can't set them with setStyle() or a CSS style directive. setAttribute() might work but you'll need to test it.
Anthony
Monday, December 15, 2008
I've tried

obj.setAttribute("readonly", true);

It doesn't work either.

Any more suggestion?

Thanks,
mrhsh
Monday, December 15, 2008

This topic is archived.


Back to support forum

Forum search