Skip to content
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

Closed
DhimantB opened this issue Apr 19, 2018 · 1 comment
Closed

Kendo UI Combo Binding #561

DhimantB opened this issue Apr 19, 2018 · 1 comment

Comments

@DhimantB
Copy link

**@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?

@TooTallNate
Copy link
Contributor

Sorry, but this is not related to debug 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants