Jun 12, 2013, 6:47 AM
To view detail of elements of next/previous page In Details window
In Details window by clicking the next or previous button reaching to the last element in current page it doesn't go through the next page elements.
to deal with this I have coded to go to next page.
https://examples2.ext.net/GridPanel/...etails_Window/
any solution will be admired.
thanks in advance
to deal with this I have coded to go to next page.
https://examples2.ext.net/GridPanel/...etails_Window/
next: function () {
//emin added
var pgSize = App.CitiesGridIDPGTID.store.pageSize;
var increasingIndex = this.getIndex() + 1;
if (pgSize == increasingIndex)
{
var currPage = App.CitiesGridIDPGTID.store.currentPage;
//go next page and set increasing index to 0
if ((App.CitiesGridIDPGTID.store.currentPage + 1) <= App.CitiesGridIDPGTID.getPageData().pageCount)
App.CitiesGridIDPGTID.store.nextPage();
var newCurrPage = App.CitiesGridIDPGTID.store.currentPage;
increasingIndex = this.getIndex();
this.edit(increasingIndex);
}
although it loads the next page, but it doesn't view the record with new page index. it view the previous page record.any solution will be admired.
thanks in advance