on 12-29-2006 11:47 AM
How to make Dropdown control visible/invisible at runtime? Please provide me complete code
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.