height Number|String

The height of the listview. Numeric values are treated as pixels.

Example - set the height as a number

<div id ="listView"></div>
<script>
var dataSource = new kendo.data.DataSource({
  data: [ { name: "Jane Doe" }, { name: "John Doe" }]
});
$("#listView").kendoListView({
    dataSource: dataSource,
    template: "<div>#:name#</div>",
    height: 50
});
</script>

Example - set the height as a string

<div id ="listView"></div>
<script>
var dataSource = new kendo.data.DataSource({
  data: [ { name: "Jane Doe" }, { name: "John Doe" }]
});
$("#listView").kendoListView({
    dataSource: dataSource,
    template: "<div>#:name#</div>",
    height: "1em"
});
</script>
In this article
Not finding the help you need? Improve this article