Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Customizing Drop Downs, Selection Widths larger than drop down box.

Avatar

Avatar
Level 2
cyan_studios
Level 2

Likes

0 likes

Total Posts

16 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
cyan_studios
Level 2

Likes

0 likes

Total Posts

16 posts

Correct Reply

0 solutions
View profile
cyan_studios
Level 2

23-12-2008

I have a drop down menu that needs to be a certain width and, in the end, needs to contain a 5 digit value. But, that value is bound to a description, and I want the users to be able to select based on description.



It's a data drop down, so it has the premade Javascript already and it has display and value bindings to an SQL database, so most of it is set up already, I just need two things:



How can the selection list that appears be larger than the actual drop down box, so that it accomodates the descriptions instead of the numeric values?



Can I cause the box to fill with the "value" instead of the "display text" after the description selection has been made?

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

05-01-2009

The width of the DD is set at design time. Not sure if you can change the width after the form has been rendered. If you can it will be complicated to cycle through each item in the list to get the right length.



You can have the DropDown display description but submit or report the numeric values. Once that is set it cannot be changed. You can get either value back programatically but once it is set you cannte change it dynamically.