How to set the current page of datagrid to 1?
I have a combo box with ajax function to trim down the list of the datagrid. When I use the table scroller to natvigate to say, page 5, and then change the value on the combo box calls ajax request to trim down the datagrid's list, the reult has only one page.
But at this time, the datagrid displays nothing and the datascroller show that it has only one page.
How to reset the current page of datagrid to 1 after each ajax request?
It work fine if the max page of the new result is equal or greater than the current page no.
e.g. if the current page is 5, and I select the new value on the combo box filter, if the result has > than 5 pages, it shows on page 1 of the new datagrid normally.
But fail if the max page of the new result is less than the current page no.