on 07-18-2008 7:22 PM
Lets assume we have a dropdownbyindex with the following values.
'A'
'B'
'C'
Is there a graceful way to set a selected index based on a table value? To explain, let's say this drop down is one input in a form full of inputs and the back end is supplying data for an update. When the form loads, all the inputs are populated based on the data passed in. In the case of a drop down, 'B' is passed in and I'd like the drop down index to be 2 (in this case).
In other words, based on the data I'd like the drop down to reflect the appropriate selected value.
Other than looping and comparing values and then setting lead selection index, I don't see a pre-existing solution.
Yes - use a DropDownByKey - it works exactly as you describe.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.