Kendo UI Grid with dynamic columns and random data showing objects as [object Object]

3 posts, 1 answers
  1. Austin
    Austin avatar
    8 posts
    Member since:
    Sep 2016

    Posted 06 Sep 2016 Link to this post

    Hi I'm new to kendo ui, recently had created a table using kendo grid and my data shown [object Object] the cell. 

    what is the way to display the address object in a single data.

    <!DOCTYPE html>
        <style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style>
        <link rel="stylesheet" href="//" />
        <link rel="stylesheet" href="//" />
        <link rel="stylesheet" href="//" />
        <script src="//"></script>
        <script src="//"></script>
            <div id="example">
                <div id="grid"></div>
            var peoples = {
                "people": [{
            "name": "John Smith",
            "phone": "(519) 420-2391",
            "address": {
                "street": "123 Main St",
                "city": "Someplace"
        dataSource: {
            data: peoples,
            schema: {
                data: 'people'
         scrollable: true,
         sortable: true,
         resizable: true,
         pageable: true,
         columnMenu: true,
        columns: peoples

  2. Answer
    Orlin avatar
    62 posts

    Posted 09 Sep 2016 Link to this post

    Hello Austin,

    The columns configuration of the Grid should be an array of objects with settings for each column.

    The provided example assigns the data object as column configuration, which will not work, first because the data object is not an array, and second, because it does not contain any meaningful column settings that the Grid can parse and use. In other words, the column settings are currently being ignored and the Grid autogenerates its columns.

    To render data with nested objects with the Kendo UI Grid, you need to break the data into fields for each column.

    You could either set the street and city as separate columns, in which case you can do it as demonstrated here:

    Or alternatively you could use a column template and group the street and city into one column like in this dojo demonstration:

    A similar example with nested objects is also available at:

    You can find more information about column templates here:

    I hope this answers your question.

    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
  3. Austin
    Austin avatar
    8 posts
    Member since:
    Sep 2016

    Posted 12 Sep 2016 in reply to Orlin Link to this post

    Thank a lot on the solution which helps to solve the problems.
Back to Top