Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have kendo dropdown list getting data from list like text and value

When I load the page I need to set the dropdown value

<kendo-dropdownlist [data]="item.listAnswerOptions"
                            id="Q{{item.QuestionId}}"
                            [valuePrimitive]="true"
                            textField="text"
                            valueField="value"
                            [(ngModel)]="item.EncAnswerOption">

        </kendo-dropdownlist>


where In
[(ngModel)]="item.EncAnswerOption">
item.EncAnswerOption
have the value to be set

What I have tried:

<pre><kendo-dropdownlist [data]="item.listAnswerOptions"
                            id="Q{{item.QuestionId}}"
                            [valuePrimitive]="true"
                            textField="text"
                            valueField="value"
                            [(ngModel)]="item.EncAnswerOption">

        </kendo-dropdownlist>
Posted
Updated 5-May-23 0:30am

1 solution

This is a commercially supported product. Best place to ask questions is in their support forums: Questions on Kendo UI for Angular Forum | Telerik Forums[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900