I cannot find a way to disable the dijit.form.FilteringSelect widget. The requirement makes the css display as none is not an option.
Any hint? Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Figure it out myself:
simply does the job. Change it to
falsecan enable the widget.Cheers.
UPDATE
Plus, there is another attribute to the widget called
"readOnly", the difference from it and"disabled"is that :disableddoes not allow any value given to the widget, meaning the widget value is alwaysNULL("")in the form. It might be a problem inNotNullsituation;but
readOnlyallows to preset a value to the widget and make it not editable, and user can still submit the value just only not able to change it.sample: