Radzen Culture (iterate each locale by its value)

Hello everyone,

I'm trying to add a logo for each culture but i'm having difficulties to understand the value retrieved.

          <RadzenDropDown Data="@(new[] { new { Text="Portuguese - Portugal", Value="pt-PT" },new { Text="English - United States", Value="en-US" }})" TextProperty="Text" @bind-Value="@Culture" ValueProperty="Value" Name="Dropdown1" Change="@Dropdown1Change">
          <Template Context="data">
              @{
                  foreach (var locale in Culture)
                  {
                      var country = locale;
                  }
              }
          </Template>
      </RadzenDropDown>

The value I'm getting is like 112 'p' - what is the meaning of this???

Thanks in advance

Iteration of strings usually gives you the string chars

1 Like

@enchev What I would like to do is retrieve the value of the dropdown (ex: pt-pt) and place the country image accordingly