I have a DDL with around 40 entries that have got specific values associated with them. As they are a list of sites with different priorities their values are all either 1, 2, or 3. So this means that there are multiple sites with the same value.
When I am selecting a site, say the 4th on the list, it will choose the first site in the list with the same value and not the one that I have selected.
Should this happen?
Does anyone know of a solution for this problem?
I can put in a workaround where I give them all individual values 1-40 and put my priority according to the how high they are ranked (so 1 is the top 10 sites, 2 is the 11th to 25th, etc.) but this would be harder for someone else to maintain in the future.
Yes it should happen. Each site needs a unique value. You could use the site name and then grab the associated value when you need it rather than using the associated value all of the time. To get the site value use FormattedValue for the associated value use rawValue.