DropDown set the right element

Sorry for asking this question I have tried to find the answers in the forum but I can't

When a load a sub dialog, in my case EditSailingEventParticipant i pass some data like Snumber, Skipper, BoatName and something that I call SRSTypeID (1-4)

In the sub dialog I have a DropDown loaded from a table with 4 rows (1 to 4), I have a Page parameter called SRSTypeId (1-4). If it is 2 I want to set the right record in the DropDown, but I can't get it to work.

The ValueProperty is Id

To set the value of any Radzen component you need to follow the same steps:

  1. Create a page property (e.g. srsType).
  2. Set the Value of the component to that property (${srsType}).
  3. Set the property to the desired value e.g. 4 to select the record whose Id is 5 (you need the Id value because you have set ValueProperty to Id).
2 Likes