3.0.0

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
December 14,
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
December 15,
I've tried

obj.setAttribute("readonly", true);

It doesn't work either.

Any more suggestion?

Thanks,
mrhsh
December 15,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.