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

Grid column heading does not change

1 Answer 277 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shri
Top achievements
Rank 1
shri asked on 05 Oct 2013, 09:35 PM
Hi ,

I am totally new to Kendo UI . I was playing with Kendo WEB UI grid and have following code. Trying to change the column heading and for some reason its not working... I am using Json using Web API for datasource.

<!-- here is code --:
<!DOCTYPE html>

<html >
<head>
<title>Kendo UI</title>
<link href="Content/kendo/2013.2.716/kendo.common.min.css" rel="stylesheet" />
<link href="Content/kendo/2013.2.716/kendo.default.min.css" rel="stylesheet" />
<script src="Scripts/jquery-1.9.1.js"></script>
<script src="Scripts/kendo/2013.2.716/kendo.web.min.js"></script>


<script>
$(function () {

$("#employeesGrid").kendoGrid({
dataSource: new kendo.data.DataSource({

transport: {
read: "api/employees"
},
columns: [
{
field: "DOB",
title: "Date Of Birth"
},
{
field: "FirstName",
title: "First Name"
}
],
})
});
});
</script>
</head>
<body>
<div id="employeesGrid"></div>

</body>
</html>

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 08 Oct 2013, 06:28 AM
Hi Shri,

It looks like you have defined the columns property inside your dataSource. Please keep in mind that columns is part of the Grid configuration. Please check the following demo, showing how to bind Kendo UI Grid to a remote service:

http://demos.kendoui.com/web/grid/local-data.html
 
Regards,
Kiril Nikolov
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
shri
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or