Wednesday 18 December 2013

How to Hide Enum Element Dynamically on formControl

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

SQL/SSRS Interview questions I thought of blogging some SQL/SSRS interview questions.

Below are some. I will add more, when I complete the compilation 1. What is OLTP(Online Transaction Processing)? OLTP stands ...