on 02-06-2006 2:32 PM
How can i remove the default entry from a dropdown element?
Florin
Florin,
For context node, that serves as item source for your DropDownByIndex, set selection cardinality to 1..1
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i created a new value node with cardinality 1.1 and selection 1.1.
i created a new value atribute and i assigned the property selectedkey to this attribute.
It still not working. I still have a default entry.
The default entry is not in the dropdown list because when i try to select something i can only see my items. But first time when i load this view default selected key is an empty value.
Florin
Hi Florin,
If you are using DropDownByKey, just setting the current selection to some key value will remove the default blank entry.
wdContext.current<node name>Element().set<attribute>(<key value of the selected data>);
This will set the value corresponding to this key as the currently selected one in the dropdown and along with this, the default entry will also disappear
Hope this helps,
Best Regards,
Nibu.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.