Deleting last remaining row on kendo grid on the last page does not go to the previous page

1 posts, 0 answers
  1. saranya
    saranya  avatar
    4 posts
    Member since:
    May 2014

    Posted 26 May 2014 Link to this post

    Hi Team,

    I am facing this problem of deleting last remaining row on kendo grid on the last page does not go to the previous page....
    Do i need to write the custom code or any other option of grid refresh is available?
    I am trying with the following code:
    function onDataBound(e) {    
    if (this.dataSource.view().length == 0) {  
     var currentPage = this.dataSource.page();   
         if (currentPage > 1) {  
              this.dataSource.page(currentPage - 1);   
         } 
       }}

    Is this approach is right....any help on this please....
Back to Top