cancel
Showing results for 
Search instead for 
Did you mean: 

How to make Dropdown control visible/invisible runtime?

Former Member
0 Kudos

How to make Dropdown control visible/invisible at runtime? Please provide me complete code

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

You can set the Dropdown control visiblity at runtime by

1) declare a context attribute say(dropDownVisibility) of type <b>Visibility</b>.

2) bind the <b>Visibility proprty </b>of Dropdown to the context attribute(dropDownVisibility).

3) Then depending on conditon set the context attribute value.

ex: boolean a = true;

<b>if(a)

wdContext.currentContextElemnt.setdropDownVisibility(WDVISIBILITY.VISIBLE);

else

wdContext.currentContextElemnt.setdropDownVisibility(WDVISIBILITY.NONE);</b>

Regards,

Jhansi

Former Member
0 Kudos

You can control the visibility by binding the Visibility property with the COntext value attribute of type boolean.

at run time set the value of context to 0/1. ,it will work.

Former Member
0 Kudos

Really?

Armin

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi satyanarayan,

See this thread:

Regards, Suresh KB

Former Member
0 Kudos

You can control the visibility of any UI element by

- binding the "visible" property to a context attribute of type "Visibility" (DDIC type)

- setting the context attribute value at runtime to any of the values of type WDVisibility

Armin