This is a migrated thread and some comments may be shown as answers.

Field as Knockout observable

1 Answer 132 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roland
Top achievements
Rank 1
Roland asked on 16 Oct 2013, 08:31 PM
I have a datasource (array) with Knockout observable properties.
I want the grid to display the value of the observable in the grid.

Grid configuration excerpt:
columns: [
                    { field: "Name"}
]

Here, Name is a Knockout observable. But it doesn't work, because the grid expects a normal js property.
Is there a way to get this working without converting all observables back to normal properties?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 17 Oct 2013, 06:47 AM
Hello Roland,

 The Kendo UI grid won't bind to a knockout observable out of the box. I recommend checking the knockout-kendo open source library which provides integration between knockout and Kendo UI.

Regards,
Atanas Korchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Roland
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or