Edit this page

selectTemplate String

The template for selected page number link.

Example - declare custom template for the selected page number

<div id="pager"></div>

<script>
    var dataSource = new kendo.data.DataSource({
      data: [
        { productName: "Tea", category: "Beverages" },
        { productName: "Coffee", category: "Beverages" },
        { productName: "Ham", category: "Food" },
        { productName: "Bread", category: "Food" }
      ],
      pageSize: 2
    });

    $("#pager").kendoPager({
      dataSource: dataSource,
      selectTemplate: '<li class="k-link"><span style="color:red">#=text#</span></li>'
    });

    dataSource.read();
</script>
<style>
  #pager {
   margin-top: 100px;
  }
</style>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy