When filtering in radgrid using the basic built in filtering on a page greater than 1, I get the following error:
The specified value cannot be set on CurrentPageIndex
Specified argument was out of the range of valid values. Parameter name: value
Seems like when the CurrentPageIndex is greater than 1 it doesn't like to filter.
Is there a workaround? - when filtering 1st set CurrentPageIndex to 1?
I am using MyCustomFilteringColumn for one of the columns in the grid filter.
I am using version 2008.2.723.35
If I set AutoPostBackOnFilter=true. This problem goes away. But I don't want to AutoPostBackOnFilter - since when I have this true and I click on the filter menu it automatically refreshes the 1st time without me picking anything from the menu.
Detailed errors:
Message: The specified value cannot be set on CurrentPageIndex
Source: Telerik.Web.UI
Target Site: Void ExecuteCommand(System.Object)
Stack trace: at Telerik.Web.UI.GridPageChangedEventArgs.ExecuteCommand(Object source) at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) at Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
*******Exception*******
Message: Specified argument was out of the range of valid values. Parameter name: value
Source: Telerik.Web.UI
Target Site: Void set_CurrentPageIndex(Int32)
Stack trace: at Telerik.Web.UI.GridTableView.set_CurrentPageIndex(Int32 value) at Telerik.Web.UI.GridPageChangedEventArgs.ExecuteCommand(Object source)
The specified value cannot be set on CurrentPageIndex
Specified argument was out of the range of valid values. Parameter name: value
Seems like when the CurrentPageIndex is greater than 1 it doesn't like to filter.
Is there a workaround? - when filtering 1st set CurrentPageIndex to 1?
I am using MyCustomFilteringColumn for one of the columns in the grid filter.
I am using version 2008.2.723.35
If I set AutoPostBackOnFilter=true. This problem goes away. But I don't want to AutoPostBackOnFilter - since when I have this true and I click on the filter menu it automatically refreshes the 1st time without me picking anything from the menu.
Detailed errors:
Message: The specified value cannot be set on CurrentPageIndex
Source: Telerik.Web.UI
Target Site: Void ExecuteCommand(System.Object)
Stack trace: at Telerik.Web.UI.GridPageChangedEventArgs.ExecuteCommand(Object source) at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) at Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
*******Exception*******
Message: Specified argument was out of the range of valid values. Parameter name: value
Source: Telerik.Web.UI
Target Site: Void set_CurrentPageIndex(Int32)
Stack trace: at Telerik.Web.UI.GridTableView.set_CurrentPageIndex(Int32 value) at Telerik.Web.UI.GridPageChangedEventArgs.ExecuteCommand(Object source)