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

template for Grid

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hung
Top achievements
Rank 1
Hung asked on 15 Nov 2011, 09:32 AM
hi! i follow the demo's code in tutorial of grid. This is my code:
<table id="grid">
            <thead>
                <tr>
                    <th data-field="Content1"></th>
                    <th data-field="Content2"></th>
                </tr>
            </thead>
        </table>
$("#grid").kendoGrid({
                dataSource: dataSource,
                height: 100,
                scrollable: {
                    virtual: true
                },
                selectable: true,
            });
Above code displays content1 and content2 in 2 collumns. I try to edit <thead> <th> tag to <tbody></td> but it's seem kendoGrid can oly bind data to <th> tag right?
i wanna display the table in one coll which content1 and content2 are just in one block. How can i do it?
Thanks for any help!

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 16 Nov 2011, 09:30 AM
Hello Hung,

 You should create a template column in order to achieve your goal. Here is a demo how to do this.

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