This post will help you to Hide Enum Element Dynamically on formControl . This situation require when we have an enum with values Element1, Element2 and Element3. And we want to use this enum on two different places and Element2 is not require in one place. So we can hide element2 at run time using following code.
1. Create a ComboBox on formControl and set property “EnumType –ItemType”
2. Override enter() on created ComboBox and write this code:
this.delete(enum2str(ItemType::BOM));
super();
3. Now run form and check.
No comments:
Post a Comment