Hi,
I am fairly new to Telerik so I will explain the issue as best I can. The goal is to bind the list to an enum and the SelectedValue to a value in another object.
So, I have a combobox that needs populated from an enum. The enum consists of two strings, ShortName and DisplayText. I am able to get the combobox to bind and have the DisplayText appear which is great. With my HTML background I expect to be able to set a DDL's value and text separately. It appears that if I set the text it sets that as the value as well. Is this correct?
The reason for this necessity is that I am attempting to bind the SelectedItem to a value retrieved from a database. The ShortName property in the enum is being brought back from the database but I need to show the DisplayName.
I am used to this being pretty simple. Anybody know what I am missing here???
Thanks!
-Will
I am fairly new to Telerik so I will explain the issue as best I can. The goal is to bind the list to an enum and the SelectedValue to a value in another object.
So, I have a combobox that needs populated from an enum. The enum consists of two strings, ShortName and DisplayText. I am able to get the combobox to bind and have the DisplayText appear which is great. With my HTML background I expect to be able to set a DDL's value and text separately. It appears that if I set the text it sets that as the value as well. Is this correct?
The reason for this necessity is that I am attempting to bind the SelectedItem to a value retrieved from a database. The ShortName property in the enum is being brought back from the database but I need to show the DisplayName.
I am used to this being pretty simple. Anybody know what I am missing here???
Thanks!
-Will