How to disable the widget "dijit.form.FilteringSelect"?

I cannot find a way to disable the dijit.form.FilteringSelect widget. The requirement does a css mapping, since none of them is an option.

Any hint? Thanks in advance.

+5
source share
1 answer

Think for yourself:

dijit.byId('_fromState_id').set('disabled', true);

just doing the job. Change it to falseto enable the widget.

Greetings.

UPDATE

In addition, there is another attribute of the widget called "readOnly", the difference from it "disabled"is as follows:

  • disableddoes not allow to assign a value to the widget, that is, the value of the widget is always equal NULL("")in form. This can be a problem in a situation NotNull;

  • readOnly , , .

:

  dijit.byId("_fromState_id").set("value", "NOTAVAILABLE");
  dijit.byId('_fromState_id').set('readOnly', true);
+20

All Articles