This is a migrated thread and some comments may be shown as answers.
Complex Data Types
2 Answers 76 Views
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 17 Jan 2012, 12:50 AM
I am creating a grid, and the object each row is bound to contains a complex object that I want to be able to edit and update. The object has a property that is just a number, and I want to be able to see/edit/update that number in the grid. I can make the number visible easily enough using a template, but does the grid know how to allow edits/updates to the original data source?

As an example, the object the row is bound to may look like:

data = {
    ListPrice: {
        value: 8.99
    }
}

So, I want to show "8.99" in the grid, which I can do by defining my columns like so:

columns: [
    {
        field: 'ListPrice',
        title: 'List Price',
        template: '#= ListPrice.Value #'
    }
]

But, will I be able to edit this value in the grid? And how will the grid know to update the Value property when I do the edit?

Thanks

2 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 19 Jan 2012, 10:23 AM
Hello Stephen,

I am afraid that currently editing on nested properties is not supported.

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
G_P
Top achievements
Rank 1
answered on 03 Aug 2012, 06:12 PM
Will editing on nested properties be supported in the future? If so, any rough idea on timeline?
Tags
Grid
Asked by
Stephen
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
G_P
Top achievements
Rank 1
Share this question
or