Blazor TelerikDropDownList

2 posts, 0 answers
  1. khashayar
    khashayar avatar
    58 posts
    Member since:
    Sep 2019

    Posted 04 Dec 2019 Link to this post

    i wanted to know how can i get the the whole object instead of pass ValueField and Get That as a value 

    <TelerikDropDownList Data="@myDdlData" TextField="MyTextField" ValueField="MyValueField" @bind-Value="selectedValue"></TelerikDropDownList>

    like in here i want my ValueField be the whole object no MyValueFierd
  2. Marin Bratanov
    Marin Bratanov avatar
    5706 posts

    Posted 04 Dec 2019 Link to this post


    This is possible if you are binding to primitive types:

    Alternatively, you should do a lookup in the model collection based on the value. You can read more about this in the following thread where a more detailed discussion is available:


    Marin Bratanov
    Progress Telerik

     UI for Blazor
Back to Top