-
Notifications
You must be signed in to change notification settings - Fork 936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kendo UI Combo Binding #561
Comments
Sorry, but this is not related to |
This was referenced Nov 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
**@component({
selector: 'my-app',
template:
<div class="example-config"> Selected Item: {{selectedItem | json}} </div> <kendo-combobox [data]="listItems" [textField]="'catdes.CategoryName'" [valueField]="'catdes.CategoryName'" [(ngModel)]="selectedItem" [valuePrimitive]="true" > </kendo-combobox>
})
export class AppComponent {
public listItems: Array = categories;
public selectedItem: categories = this.listItems[1];
}
export const categories = [
{
"CategoryID": 1,
catdes:
{
"CategoryName": "Beverages",
"Description": "Soft drinks, coffees, teas, beers, and ales"
}
},
{
"CategoryID": 2,
catdes:
{"CategoryName": "Condiments",
"Description": "Sweet and savory sauces, relishes, spreads, and seasonings"}
},
{
"CategoryID": 6,
catdes:
{"CategoryName": "Meat/Poultry",
"Description": "Prepared meats"}
},
{
"CategoryID": 7,
catdes:
{"CategoryName": "Produce",
"Description": "Dried fruit and bean curd"}
},
{
"CategoryID": 8,
catdes:
{"CategoryName": "Seafood",
"Description": "Seaweed and fish"}
}
];
export const catdes
{
CategoryName: String;
Description: String;
}**
With the above code, I am not able to see any values in my combo box. May I know what I am doing wrong?
The text was updated successfully, but these errors were encountered: