title: previous and next button navigating page to first and last page in kendo UI
body: <pre><code>$(selector).kendoGrid({
      dataSource: jsonData,
      rowTemplate: '#: Store_ID # #: Store_Name # #: Store_Address # #: Terminal_ID # #: Severity_Type ##: Error_Type ##: Error_Date # ',
      altRowTemplate: '#: Store_ID # #: Store_Name # #: Store_Address # #: Terminal_ID # #: Severity_Type ##: Error_Type ##: Error_Date # ',
      sortable: true,
      selectable: 'row',
      scrollable: false,
      pageable: {
          previousNext: true,
  
          pageSize: 5,
          pageSizes: true,
          buttonCount: 2,
  
          messages: {
  
              display: "Showing {0}-{1} from {2} data items"
          }
      },
      //other properties...
  
  });
  </code></pre>
  
  <p>I have four pages, but when I click on next button, it is navigating to fourth page directly from first page. What am I doing wrong?</p>