Complex Data Types

3 posts, 0 answers
  1. Stephen
    Stephen avatar
    24 posts
    Member since:
    May 2011

    Posted 16 Jan 2012 Link to this post

    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. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 19 Jan 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. G_P
    G_P avatar
    9 posts
    Member since:
    Jul 2012

    Posted 03 Aug 2012 Link to this post

    Will editing on nested properties be supported in the future? If so, any rough idea on timeline?
Back to Top