3.2.0

How to disable an ActiveWidgets Combo Box

Hi,
I am new to ActiveWidgets i have created an combo as,

var myDataDept=['a','b','c'];

var cboUsrDpt = new AW.UI.Combo;
cboUsrDpt.setSize(55,22);
cboUsrDpt.setId("hidcboDept");
cboUsrDpt.setItemText(myDataDept);
cboUsrDpt.setAttribute("disabled", null);
cboUsrDpt.getContent("box/text").setAttribute("maxlength",5);
cboUsrDpt.setItemCount(myDataDept==null ? 0 : myDataDept.length);

The default value of the combo box should be 'b'

The problem is i am three radio buttons in my JSP page when i click the first button the combo box allow the user to select the options in it and also editable , but when i click the remaining two buttons the combo box should not allow the user to select as well as not to editable.
Its urgent. Please reply to me. Thanks in Advance.
Ponnudurai
April 11,
Unfortunately in the current version 'disabled' state is not supported (it will be added in the future).

Maybe you can add semi-transparent div on top of the combo as a workaround?
Alex (ActiveWidgets)
April 11,

This topic is archived.

See also:


Back to support forum