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

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

0 Answers 26 Views
Sample Applications
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
saranya
Top achievements
Rank 1
saranya asked on 27 May 2014, 04:16 AM
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....
Tags
Sample Applications
Asked by
saranya
Top achievements
Rank 1
Share this question
or