I want navigate to page, that has particular row id.

Hi,



my data has a date column.

This column has date ranges starting from current date - 7 to current date +7.

Suppose i get 500 records between this date range.

This data is sorted data with date.

I want grid to be default navigated to current date page.

i.e. if we are getting current date on 13th page, then we should get the 13th page initially, when gird is loaded



Awaiting your response.

If you know the row ID you can use

grid.load(“some.xml”,function(){
grid.showRow(id);
})

for older versions of grid it may be need to changed to the next

grid.load(“some.xml”,function(){
var ind = grid.getRowIndex(id);
var page = Math.floor(ind/ PAGESIZE )+1;

grid.changePage(page);
})

where PAGESIZE - paging step