Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
290
Display value of unbound column isn't the same as a bound column
posted

My current application takes a number and converts it to text values from another table.  I create a ultradropdown and then filter the values on the row initialize event.  The field is bound to a decimal column in the database.  The dropdowns that contain text convert back to numbers, display value = "Red" value = 20001.  Everything works great.

Now I have a requirement to add the ability to enter text into the column instead of numbers.  Instead of trying to do convolutions to change the datatype I simply created an unbound column and set the valuelist to exactly the same dropdown as the bound column.

For some reason the dropdown is not converting the display value correctly.  It just shows the system numbers instead of the text set in the valuelist.

Attached is a screen shot.  The first column with the 200001 value should actually be saying Red.

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    You kinda lost me a little bit here. You are assigning an UltraDropDown to the column and then filtering it in InitializeRow? Why filter the list? And why do it in InitializeRow. That doesn't seem like a good event to use, since it will essentially filter the list based on the last row which was initialized and that's completely arbitrary.

Reply Children