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

AutoPostBackOnFilter & Paging issue

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lenny_shp
Top achievements
Rank 2
Lenny_shp asked on 08 Dec 2008, 09:14 PM
2008.3.1125.35  VS2008 SP1

Two different behaviors:
If I have AutoPostBackOnFilter set to false, when the user enters a new filter and selects a filter menu, it automatically goes back to page 1.  (expected behavior)

If I have AutoPostBackOnFilter set to true, when the user enters a new filter and selects a filter menu, it stays at the current page number.   (unexpected behavior)

Ideally it should also go back to page 1.    The grid is Ajaxified through RadAjax.

I just resolved this on my own by adding this to ItemCommand.
If e.CommandName = RadGrid.FilterCommandName Then
            e.Item.OwnerTableView.CurrentPageIndex = GridResetPageIndexAction.SetPageIndexToFirst
End If


1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 11 Dec 2008, 11:41 AM
Hello Lenny,

Indeed, this behavior is observed. The workaround which you are using is also correct.
Additionally, I will alert our developers for the small discrepancy that you described, so that it is eliminated in one of the upcoming versions of the control.

Best wishes,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Lenny_shp
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Share this question
or