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

Grid - Refresh - After item on last page is removed

0 Answers 218 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 01 Aug 2012, 06:06 PM
Problem: Grid contents after refresh
Context: Grid backed by a JSON remote service -- Python Django + Tastypie

Steps to Reproduce:
1. Setup your data feed such that based on the pageSize that the last page only contains one item. 
2. Initialize your kendo grid 
3. Delete the item on the last page. 
4. Refresh the Kendo Grid
[code]

function refreshKendoGrid(gridId) {

var grid = $(gridId).data("kendoGrid");

//reload grid's datasource

grid.dataSource.read(); 

// refreshes the grid

grid.refresh();

}
[code]

5. Grid shows no entries within the k-grid though the page number is set to correct page (page 1, prior to item deletion there were 2 pages)

 

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Share this question
or