Disable ComboboxEditor in TemplatedDialog #7238
Unanswered
dominhnhien1997
asked this question in
Help
Replies: 1 comment
-
@dominhnhien1997 , it may be a question of where you are putting that code. I just tried this in the UserDialog; it worked when I put it in afterLoadEntity but not in the constructor. EditorUtils.setReadonly(this.form.TwoFactorAuth.domNode, true); of course, if this is not conditional, you can always set the item readonly in the form instead -- just want to make sure you know this: [ReadOnly(true)]
public TwoFactorAuthType TwoFactorAuth { get; set; }
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to set readonly a combox editor, I used EditorUtils.setReadonly method and passed it as true. But then I found that the controls can still change the value. So how should I do?. Please help me
Serenity version : 8.4.8
EditorUtils.setReadonly(myElement, true)
Beta Was this translation helpful? Give feedback.
All reactions