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

[Solved] define grid columns in markup

1 Answer 123 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 28 Oct 2014, 08:18 PM
Is it possible to define the grid columns in html using angularjs markup ?

I would rather not have the ui guys playing around with my javascript :)

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 30 Oct 2014, 03:41 PM
Hello Julian,

Yes you can define the Grid's columns in the HTML.

The syntax is:
<div kendo-grid="myGrid" k-columns="[{field: 'FirstName', title: 'First Name'}, { field: 'LastName', title: 'Last Name' }]" k-options="mainGridOptions"></div>

I hope the information will help.

Regards,
Alexander Valchev
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
Julian
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or