I'm getting really confused about the functionality of the DropDown Box and the value / text fields of it.
My example:
<RadzenDropDown id="GreigeStyles" Data=@DataKs.DataGreigeStyles
TextProperty="@(nameof(GenericStringRow.Text))"
ValueProperty="@(nameof(GenericStringRow.Value))"
ValueChanged="@( (string newValue) => GreigeStyleChangeHandler(newValue) )"
Value="@AppState.Style.Value"
Style="width: 100%; max-width: 100px; font-size: 8px; height: 25px;">
<Template>
<span style="font-size: 8px;">@((context as GenericStringRow).Text) </span>
</Template>
<ValueTemplate>
@((context as GenericStringRow).Value)
</ValueTemplate>
</RadzenDropDown>
The data is coming back as name / id, ex "block", 1.
When I do a selection, the value 1 is correctly added to my value holder. However, the drop-down will display the 1 in the selected text field, instead of the 'block' text.
No matter how I bind the value of the drop-down, I cannot get the actual text of the dataset to be displayed, it will only show the ID value of the selected item in the text box.
Any idea what I'm doing wrong? I have no problem doing this with the Telerik controls. The Radzen ones are causing me fits though!